Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A file and a directory with shared path confuses rclone #14

Closed
ncw opened this issue Nov 27, 2014 · 1 comment
Closed

A file and a directory with shared path confuses rclone #14

ncw opened this issue Nov 27, 2014 · 1 comment
Labels
Milestone

Comments

@ncw
Copy link
Member

ncw commented Nov 27, 2014

It is quite possible to make objects like this (in s3 or swift)

test_file
test_file/1

However when rsync tries to copy them it is confused about the status of "test_file" whether it should be a file or a directory, and gives errors like this

2014/11/27 13:17:54 test_file/1: Failed to copy: mkdir /tmp/test/test_file: not a directory

Not sure how to fix this as it isn't possible to represent this in a filesystem. syncing a bucket/container like this to s3/swift does work fine though.

This can be caused by the s3fs program which creates a file object "dir/" for every directory - presumably to store permissions, eg

        0 2014-11-27 13:17:54.000000000 test/
       10 2014-11-27 13:12:28.000000000 test/test_file

Could just ignore zero length files with trailing / ?

@ncw ncw added the bug label Nov 27, 2014
@ncw ncw added this to the Known Problem milestone Jun 16, 2016
@ncw
Copy link
Member Author

ncw commented Feb 23, 2017

I'm closing this in favour of #753

@ncw ncw closed this as completed Feb 23, 2017
Arnie97 pushed a commit to mirrors-tk/rclone that referenced this issue Apr 17, 2022
currently when context is canceled, and if in Serve() based Accept()
loop, the process is shut down without waiting for the client
connections to gracefully exit.

not sure if graceful handling would be worth the effort.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant