{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1164","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1164/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1164/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1164/events","html_url":"https://github.com/gulpjs/gulp/issues/1164","id":96818525,"number":1164,"title":"Windows permissions error","user":{"login":"ethanclevenger91","id":2623646,"avatar_url":"https://avatars.githubusercontent.com/u/2623646?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanclevenger91","html_url":"https://github.com/ethanclevenger91","followers_url":"https://api.github.com/users/ethanclevenger91/followers","following_url":"https://api.github.com/users/ethanclevenger91/following{/other_user}","gists_url":"https://api.github.com/users/ethanclevenger91/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanclevenger91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanclevenger91/subscriptions","organizations_url":"https://api.github.com/users/ethanclevenger91/orgs","repos_url":"https://api.github.com/users/ethanclevenger91/repos","events_url":"https://api.github.com/users/ethanclevenger91/events{/privacy}","received_events_url":"https://api.github.com/users/ethanclevenger91/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gulpjs/gulp/labels/further%20investigation%20required","name":"further investigation required","color":"0052cc"},{"url":"https://api.github.com/repos/gulpjs/gulp/labels/help%20wanted","name":"help wanted","color":"006b75"},{"url":"https://api.github.com/repos/gulpjs/gulp/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-23T13:46:59Z","updated_at":"2015-12-17T08:21:19Z","closed_at":null,"body":"Sometimes when I'm running Gulp, there will spontaneously be an issue with a directory I've cleaned and Gulp suddenly can't access it. If I look into it, I find that the folder has lost its owner and Windows says \"Unable to display current owner\" in the folder's properties -> Security -> Advanced. From here it's nearly impossible to get rid of. I have to execute a takeown using the administrator account through CMD ran as administrator, and even that didn't really work the last time, so I restarted and the folder was gone.\r\n\r\nI realize that's an incredibly unscientific rundown and doesn't help to narrow down the issue, but you can find my gulpfile [here](https://github.com/ethanclevenger91/WordpressGulpStarter/blob/master/gulpfile.js), as perhaps something sticks out as unusual. The `build` folder is the one that's getting borked. Most recently, the issue happened during the `imagemin` task run as part of the `build` task, but this isn't consistent.\r\n\r\nThis rarely happens (and I'm sure I couldn't recreate it if I tried), so I know I'm kind of shooting in the dark. Maybe something in my tasks is unusual?"},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/comments/165381234","html_url":"https://github.com/gulpjs/gulp/issues/1164#issuecomment-165381234","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/1164","id":165381234,"user":{"login":"oscar-b","id":85102,"avatar_url":"https://avatars.githubusercontent.com/u/85102?v=3","gravatar_id":"","url":"https://api.github.com/users/oscar-b","html_url":"https://github.com/oscar-b","followers_url":"https://api.github.com/users/oscar-b/followers","following_url":"https://api.github.com/users/oscar-b/following{/other_user}","gists_url":"https://api.github.com/users/oscar-b/gists{/gist_id}","starred_url":"https://api.github.com/users/oscar-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscar-b/subscriptions","organizations_url":"https://api.github.com/users/oscar-b/orgs","repos_url":"https://api.github.com/users/oscar-b/repos","events_url":"https://api.github.com/users/oscar-b/events{/privacy}","received_events_url":"https://api.github.com/users/oscar-b/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T08:21:19Z","updated_at":"2015-12-17T08:21:19Z","body":"For what it's worth, I had a very similar issue which I eventually tracked down to Sublime Text 3 (running on Windows 10 and NTFS). I excluded the build folder from from the project, so that it isn't displayed in the folder sidebar. This was enough to avoid EPERM errors. The strange thing was that del/rimraf clearly thought it had deleted the files, but listing the content of the directory afterwards showed the stray file still there, and writing to it failed since it's in some strange state."}}