-
Notifications
You must be signed in to change notification settings - Fork 31
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
s3sync sync shouldn't append source directory path into target path #24
Comments
After looking at the source code, I was able to determine that by appending / after the source path, it wouldn't be appended to the destination path. There are still 2 problems with the source path:
That was why I had initially dropped the trailing / |
Thanks for the investigation @krunk4ever! That's a pretty annoying/serious bug! However, I don't think I'll have time to fix that in the source code for now. If you're interested in fixing this problem, I'd definitely be able to help you in anything you might need, including applying the patch! Otherwise this bug will have to wait a little bit to be closed! Thank you so much! |
I was debugging something close to this issue today and I fixed another occurrence of this ENOENT error. Do you have the full traceback? Thanks! :) |
Here's the full stacktrace:
|
It is for sure the bug that I fixed in the last commit debugging your first message! Now we just have to deal with the slash craziness in the function that builds the source/target paths. Thanks! |
No, thank you! |
Paths are still a problem, as we can see in the issue #19. I closed the oldest issue because we made more progress here, but both could be addressed together. |
I figured out why s3sync was always uploading everything every time. It turns out that it was appending the source directory path into the target path.
e.g. if I run:
Using the full path doesn't work either:
Using the current working directory doesn't work either:
I thought the above would work, but apparently target/README.txt is a different path than target/./README.txt
Any guidance would be appreciated.
The text was updated successfully, but these errors were encountered: