{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/2681","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/2681/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/2681/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/2681/events","html_url":"https://github.com/syncthing/syncthing/issues/2681","id":125814714,"number":2681,"title":"Sometimes .tmp files are left on device after successful sync","user":{"login":"ssergiienko","id":9850672,"avatar_url":"https://avatars.githubusercontent.com/u/9850672?v=3","gravatar_id":"","url":"https://api.github.com/users/ssergiienko","html_url":"https://github.com/ssergiienko","followers_url":"https://api.github.com/users/ssergiienko/followers","following_url":"https://api.github.com/users/ssergiienko/following{/other_user}","gists_url":"https://api.github.com/users/ssergiienko/gists{/gist_id}","starred_url":"https://api.github.com/users/ssergiienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssergiienko/subscriptions","organizations_url":"https://api.github.com/users/ssergiienko/orgs","repos_url":"https://api.github.com/users/ssergiienko/repos","events_url":"https://api.github.com/users/ssergiienko/events{/privacy}","received_events_url":"https://api.github.com/users/ssergiienko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-01-10T11:33:20Z","updated_at":"2016-01-10T13:41:11Z","closed_at":"2016-01-10T12:23:38Z","body":"My case: i rename music files on Desktop PC to match some new pattern. After long sync with android device i have notice that on android left few .tmp files. This files is not empty, they just a copy of files that exists on device after sync(files with new name pattern).\r\n\r\nNot sure, about reason but guess this may happens due this situations:\r\n1) Android has sleep during sync few times and maybe this somehow affect clean up process.\r\n2) Files renamed right during sync|index progress.\r\n\r\nOn desktop v0.12.11\r\nOn android v0.12.6"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/170345084","html_url":"https://github.com/syncthing/syncthing/issues/2681#issuecomment-170345084","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/2681","id":170345084,"user":{"login":"ssergiienko","id":9850672,"avatar_url":"https://avatars.githubusercontent.com/u/9850672?v=3","gravatar_id":"","url":"https://api.github.com/users/ssergiienko","html_url":"https://github.com/ssergiienko","followers_url":"https://api.github.com/users/ssergiienko/followers","following_url":"https://api.github.com/users/ssergiienko/following{/other_user}","gists_url":"https://api.github.com/users/ssergiienko/gists{/gist_id}","starred_url":"https://api.github.com/users/ssergiienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssergiienko/subscriptions","organizations_url":"https://api.github.com/users/ssergiienko/orgs","repos_url":"https://api.github.com/users/ssergiienko/repos","events_url":"https://api.github.com/users/ssergiienko/events{/privacy}","received_events_url":"https://api.github.com/users/ssergiienko/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T13:41:11Z","updated_at":"2016-01-10T13:41:11Z","body":"`It could be potentially because you rename them twice before it gets in sync, hence why it creates the temp files.`\r\n - No, i noticed that .tmp files created always, even at first rename. In GUI process this can be seen like separate operations `local copy from original file` and `delete old file`\r\n\r\n`the files are sparse, so I think they don't actually take up space`\r\n - I open this .tmp file with audio player and it can play it, at least 1-2min starting part of it."}}