{"action":"created","issue":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/240","labels_url":"https://api.github.com/repos/arvidn/libtorrent/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/issues/240/comments","events_url":"https://api.github.com/repos/arvidn/libtorrent/issues/240/events","html_url":"https://github.com/arvidn/libtorrent/issues/240","id":114644291,"number":240,"title":"Error code for inaccessible save path","user":{"login":"sledgehammer999","id":273315,"avatar_url":"https://avatars.githubusercontent.com/u/273315?v=3","gravatar_id":"","url":"https://api.github.com/users/sledgehammer999","html_url":"https://github.com/sledgehammer999","followers_url":"https://api.github.com/users/sledgehammer999/followers","following_url":"https://api.github.com/users/sledgehammer999/following{/other_user}","gists_url":"https://api.github.com/users/sledgehammer999/gists{/gist_id}","starred_url":"https://api.github.com/users/sledgehammer999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sledgehammer999/subscriptions","organizations_url":"https://api.github.com/users/sledgehammer999/orgs","repos_url":"https://api.github.com/users/sledgehammer999/repos","events_url":"https://api.github.com/users/sledgehammer999/events{/privacy}","received_events_url":"https://api.github.com/users/sledgehammer999/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-02T17:32:06Z","updated_at":"2015-12-13T02:51:15Z","closed_at":null,"body":"I want a new error code for this situation:\r\nAdding a torrent **with a fastresume** and feeding a savepath (or letting the one in the fastresume). But that savepath doesn't exist. This could be happening because the user didn't connect his external drive or he forgot to mount the partition or due to permission issues. In this case the user expects to not lose progress and the torrent be paused or put in a special state.\r\n\r\nCurrently I am somewhat achieving this by looking for `errors::mismatching_file_size` in `fastresume_rejected_alert` alert. However, I feel that this might not cover all cases.\r\n\r\nIs it possible to add this?\r\n\r\nFurthermore, as an extra point, but not critical to this: Is it possible to specify (maybe in add_torrent_params) a way to automatically pause the torrent if the fastresume gets rejected?\r\nCurrently, I do the pause inside my `fastresume_rejected_alert` handler but the handler runs in parallel with the libtorrent thread. So in a rare case, libtorrent might go ahead and start downloading (and maybe overwrite files and progress) before I pause the torrent."},"comment":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/comments/164213193","html_url":"https://github.com/arvidn/libtorrent/issues/240#issuecomment-164213193","issue_url":"https://api.github.com/repos/arvidn/libtorrent/issues/240","id":164213193,"user":{"login":"arvidn","id":661450,"avatar_url":"https://avatars.githubusercontent.com/u/661450?v=3","gravatar_id":"","url":"https://api.github.com/users/arvidn","html_url":"https://github.com/arvidn","followers_url":"https://api.github.com/users/arvidn/followers","following_url":"https://api.github.com/users/arvidn/following{/other_user}","gists_url":"https://api.github.com/users/arvidn/gists{/gist_id}","starred_url":"https://api.github.com/users/arvidn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvidn/subscriptions","organizations_url":"https://api.github.com/users/arvidn/orgs","repos_url":"https://api.github.com/users/arvidn/repos","events_url":"https://api.github.com/users/arvidn/events{/privacy}","received_events_url":"https://api.github.com/users/arvidn/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T02:51:15Z","updated_at":"2015-12-13T02:51:15Z","body":"does that mean distinguishing between resume failure because there are no files and failure because the files have been modified since the resume data was saved?\r\nI'm envisioning a simple flag that will stop the torrent (in force-stopped checking mode) if the resume data fails. basically, the meaning of setting it is: \"I'm sure the resume data is up-to-date, if it fails, I want to decide what to do rather than to recheck files\".\r\ndoes that make sense?\r\nIn the future (as indicated on the mailing list) I envision that the only failure of resume data checking will be one or more files actually missing, never just modified."}}