Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

sync fail when a new directory exists and it is not empty #39

Open
mat813 opened this issue Feb 14, 2018 · 1 comment
Open

sync fail when a new directory exists and it is not empty #39

mat813 opened this issue Feb 14, 2018 · 1 comment

Comments

@mat813
Copy link

mat813 commented Feb 14, 2018

Hi,

This:

$ mkdir .diff/foo
$ touch .diff/foo/bar
$ dropbox-api sync .diff dropbox:/diffs/ -d
upload foo/bar /diffs/foo/bar
mktree foo /diffs/foo
2018-02-14T13:40:43 [WebService::Dropbox] [ERROR] https://api.dropboxapi.com/2/files/create_folder {"path":"/diffs/foo"} -> [409] {"error_summary": "path/conflict/folder/..", "error": {".tag": "path", "path": {".tag": "conflict", "conflict": {".tag": "folder"}}}} at /usr/local/lib/perl5/site_perl/WebService/Dropbox.pm line 184.
{"error_summary": "path/conflict/folder/..", "error": {".tag": "path", "path": {".tag": "conflict", "conflict": {".tag": "folder"}}}} at /usr/local/bin/dropbox-api line 1014.

I am not quite sure why this happens, but what seems to happen is that it first uploads foo/bar, which creates the foo directory automatically, and then, it tries to create the foo directory and fails because it is already there.

@mat813
Copy link
Author

mat813 commented Feb 15, 2018

Mmmm, and I get a similar problem when removing a non empty directory, it removes files in a random order, and removes the directory before removing all its content, and then tries to remove the last file, and fails because it went away with the directory.

delete boost-python-flavors/0001-Flavorize-boost-python-libs.patch
delete boost-python-flavors/0003-Invisible-typo.patch
delete boost-python-flavors
2018-02-15T09:09:12 [WebService::Dropbox] [ERROR] https://api.dropboxapi.com/2/files/delete {"path":"/diffs/boost-python-flavors/0002-Remove-boost-python3-libs-it-s-never-used.patch"} -> [409] {"error_summary": "path_lookup/not_found/...", "error": {".tag": "path_lookup", "path_lookup": {".tag": "not_found"}}} at /usr/local/lib/perl5/site_perl/WebService/Dropbox.pm line 184.
{"error_summary": "path_lookup/not_found/...", "error": {".tag": "path_lookup", "path_lookup": {".tag": "not_found"}}} at /usr/local/bin/dropbox-api line 1040.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant