{"action":"created","issue":{"url":"https://api.github.com/repos/tudo-r/BatchJobs/issues/65","labels_url":"https://api.github.com/repos/tudo-r/BatchJobs/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/tudo-r/BatchJobs/issues/65/comments","events_url":"https://api.github.com/repos/tudo-r/BatchJobs/issues/65/events","html_url":"https://github.com/tudo-r/BatchJobs/issues/65","id":56964677,"number":65,"title":"Directory '...' does not seem to be empty (on Windows)","user":{"login":"HenrikBengtsson","id":1616850,"avatar_url":"https://avatars.githubusercontent.com/u/1616850?v=3","gravatar_id":"","url":"https://api.github.com/users/HenrikBengtsson","html_url":"https://github.com/HenrikBengtsson","followers_url":"https://api.github.com/users/HenrikBengtsson/followers","following_url":"https://api.github.com/users/HenrikBengtsson/following{/other_user}","gists_url":"https://api.github.com/users/HenrikBengtsson/gists{/gist_id}","starred_url":"https://api.github.com/users/HenrikBengtsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenrikBengtsson/subscriptions","organizations_url":"https://api.github.com/users/HenrikBengtsson/orgs","repos_url":"https://api.github.com/users/HenrikBengtsson/repos","events_url":"https://api.github.com/users/HenrikBengtsson/events{/privacy}","received_events_url":"https://api.github.com/users/HenrikBengtsson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-08T19:46:10Z","updated_at":"2015-02-08T19:47:36Z","closed_at":null,"body":"On Windows, I quite frequently (every 10-20th time), `makeRegistry()` gives an error like:\r\n```r\r\nError in checkDir(file.dir, create = TRUE, check.empty = TRUE, check.posix = TRUE,  :\r\n  Directory 'T:/BatchJobs/reg_1125313781-files' does not seem to be empty\r\n```\r\nIt's happening at random.\r\n\r\nTROUBLESHOOTING:\r\nI've modified `checkDir() to also report on what files/directories it finds, e.g.\r\n```r\r\nError in checkDir(file.dir, create = TRUE, check.empty = TRUE, check.posix = TRUE,  :\r\n  Directory 'T:/BatchJobs/reg_1125313781-files' does not seem to be empty:\r\ntest_write_access_file_e6039406205\r\n```\r\nAfter running this several times, it's always about one of these test_write_access_file_* being \"left behind\"."},"comment":{"url":"https://api.github.com/repos/tudo-r/BatchJobs/issues/comments/73427842","html_url":"https://github.com/tudo-r/BatchJobs/issues/65#issuecomment-73427842","issue_url":"https://api.github.com/repos/tudo-r/BatchJobs/issues/65","id":73427842,"user":{"login":"HenrikBengtsson","id":1616850,"avatar_url":"https://avatars.githubusercontent.com/u/1616850?v=3","gravatar_id":"","url":"https://api.github.com/users/HenrikBengtsson","html_url":"https://github.com/HenrikBengtsson","followers_url":"https://api.github.com/users/HenrikBengtsson/followers","following_url":"https://api.github.com/users/HenrikBengtsson/following{/other_user}","gists_url":"https://api.github.com/users/HenrikBengtsson/gists{/gist_id}","starred_url":"https://api.github.com/users/HenrikBengtsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenrikBengtsson/subscriptions","organizations_url":"https://api.github.com/users/HenrikBengtsson/orgs","repos_url":"https://api.github.com/users/HenrikBengtsson/repos","events_url":"https://api.github.com/users/HenrikBengtsson/events{/privacy}","received_events_url":"https://api.github.com/users/HenrikBengtsson/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T19:47:36Z","updated_at":"2015-02-08T19:47:36Z","body":"Just to clarify, this is an error I saw more than a year ago as well, so it's nothing new.  ... and don't worry, I have a solution that I will commit soon.  I just wanted to report this as an issue, in case someone else out there has the same problem and finds this post."}}