{"action":"created","issue":{"url":"https://api.github.com/repos/yadayada/acd_cli/issues/267","repository_url":"https://api.github.com/repos/yadayada/acd_cli","labels_url":"https://api.github.com/repos/yadayada/acd_cli/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/yadayada/acd_cli/issues/267/comments","events_url":"https://api.github.com/repos/yadayada/acd_cli/issues/267/events","html_url":"https://github.com/yadayada/acd_cli/issues/267","id":133484806,"number":267,"title":"Allow md5 duplication to cause file move or symlink creation","user":{"login":"peterberbec","id":17226353,"avatar_url":"https://avatars.githubusercontent.com/u/17226353?v=3","gravatar_id":"","url":"https://api.github.com/users/peterberbec","html_url":"https://github.com/peterberbec","followers_url":"https://api.github.com/users/peterberbec/followers","following_url":"https://api.github.com/users/peterberbec/following{/other_user}","gists_url":"https://api.github.com/users/peterberbec/gists{/gist_id}","starred_url":"https://api.github.com/users/peterberbec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterberbec/subscriptions","organizations_url":"https://api.github.com/users/peterberbec/orgs","repos_url":"https://api.github.com/users/peterberbec/repos","events_url":"https://api.github.com/users/peterberbec/events{/privacy}","received_events_url":"https://api.github.com/users/peterberbec/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yadayada/acd_cli/labels/CLI","name":"CLI","color":"000000"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-02-14T00:01:11Z","updated_at":"2016-07-16T09:57:59Z","closed_at":null,"body":"According to docs, when uploading a file acd_cli has the option to not allow duplicate uploads based on the md5 hash of the file. In my system, some files are downloaded, then moved to their eventual destination, sorted, re-moved (not removed), resorted before finding a permanent home.\r\n\r\nWould it be possible to change this behavior? I'll try to lay out my logic tree:\r\n\r\nAttempt to upload /bar/foo\r\nDuplicate md5 found on server /baz/foo\r\nCheck if /baz/foo still exists locally\r\n    If so, server-side symlink /bar/foo to /baz/foo\r\n    If not, server-side move /bar/foo to /baz/foo\r\n\r\nI plan on taking a stab at this myself, but I am sure even if successful, I will more than likely create some python abomination no one would ever allow in to the release code. "},"comment":{"url":"https://api.github.com/repos/yadayada/acd_cli/issues/comments/233123052","html_url":"https://github.com/yadayada/acd_cli/issues/267#issuecomment-233123052","issue_url":"https://api.github.com/repos/yadayada/acd_cli/issues/267","id":233123052,"user":{"login":"peterberbec","id":17226353,"avatar_url":"https://avatars.githubusercontent.com/u/17226353?v=3","gravatar_id":"","url":"https://api.github.com/users/peterberbec","html_url":"https://github.com/peterberbec","followers_url":"https://api.github.com/users/peterberbec/followers","following_url":"https://api.github.com/users/peterberbec/following{/other_user}","gists_url":"https://api.github.com/users/peterberbec/gists{/gist_id}","starred_url":"https://api.github.com/users/peterberbec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterberbec/subscriptions","organizations_url":"https://api.github.com/users/peterberbec/orgs","repos_url":"https://api.github.com/users/peterberbec/repos","events_url":"https://api.github.com/users/peterberbec/events{/privacy}","received_events_url":"https://api.github.com/users/peterberbec/received_events","type":"User","site_admin":false},"created_at":"2016-07-16T09:57:59Z","updated_at":"2016-07-16T09:57:59Z","body":"I read through the link you posted, and as you say, there does not seem to be a sampling function. It does seem some sort of folder linking exists: \"A folder can share multiple parent folders.\" There is also a reference to nodes being able to having multiple parents. I don't know if these can be exploited to provide syncing functionality. \r\n\r\nEven if not, the ability to move the position instead of re-upload or upload failed would be nice. "}}
{"actor":{"display_login":"peterberbec"}}