{"action":"created","issue":{"url":"https://api.github.com/repos/zerratar/SubSync/issues/17","repository_url":"https://api.github.com/repos/zerratar/SubSync","labels_url":"https://api.github.com/repos/zerratar/SubSync/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/zerratar/SubSync/issues/17/comments","events_url":"https://api.github.com/repos/zerratar/SubSync/issues/17/events","html_url":"https://github.com/zerratar/SubSync/issues/17","id":359648833,"node_id":"MDU6SXNzdWUzNTk2NDg4MzM=","number":17,"title":"Syncing a root drive fails","user":{"login":"ForeverZer0","id":680865,"node_id":"MDQ6VXNlcjY4MDg2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/680865?v=4","gravatar_id":"","url":"https://api.github.com/users/ForeverZer0","html_url":"https://github.com/ForeverZer0","followers_url":"https://api.github.com/users/ForeverZer0/followers","following_url":"https://api.github.com/users/ForeverZer0/following{/other_user}","gists_url":"https://api.github.com/users/ForeverZer0/gists{/gist_id}","starred_url":"https://api.github.com/users/ForeverZer0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForeverZer0/subscriptions","organizations_url":"https://api.github.com/users/ForeverZer0/orgs","repos_url":"https://api.github.com/users/ForeverZer0/repos","events_url":"https://api.github.com/users/ForeverZer0/events{/privacy}","received_events_url":"https://api.github.com/users/ForeverZer0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T20:54:25Z","updated_at":"2018-09-14T06:45:09Z","closed_at":null,"author_association":"NONE","body":"I have an external HDD I use for storing movies on, where the root is `F:` (on my PC), and it simply contains folders containing movies. The problem is trying to get subs recursively. There are obviously some hidden system folders like `F:\\$RECYCLE.BIN` which will crash the program when it attempts to access them.\r\n\r\nI had a previous issue myself on minor personal project before, and found it could be easily solved while enumerating directories with something akin to this:\r\n\r\n```csharp\r\nvar info = new DirectoryInfo(path);\r\nvar root = info.Root.FullName == info.FullName;\r\nif (!root && info.Attributes.HasFlag(FileAttributes.System))\r\n\tcontinue;\r\n```"},"comment":{"url":"https://api.github.com/repos/zerratar/SubSync/issues/comments/421248108","html_url":"https://github.com/zerratar/SubSync/issues/17#issuecomment-421248108","issue_url":"https://api.github.com/repos/zerratar/SubSync/issues/17","id":421248108,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTI0ODEwOA==","user":{"login":"zerratar","id":1344098,"node_id":"MDQ6VXNlcjEzNDQwOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1344098?v=4","gravatar_id":"","url":"https://api.github.com/users/zerratar","html_url":"https://github.com/zerratar","followers_url":"https://api.github.com/users/zerratar/followers","following_url":"https://api.github.com/users/zerratar/following{/other_user}","gists_url":"https://api.github.com/users/zerratar/gists{/gist_id}","starred_url":"https://api.github.com/users/zerratar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerratar/subscriptions","organizations_url":"https://api.github.com/users/zerratar/orgs","repos_url":"https://api.github.com/users/zerratar/repos","events_url":"https://api.github.com/users/zerratar/events{/privacy}","received_events_url":"https://api.github.com/users/zerratar/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T06:45:09Z","updated_at":"2018-09-14T06:45:09Z","author_association":"OWNER","body":"Good catch and thank you for reporting this issue, @ForeverZer0 ! \r\n\r\nI will fix this as soon as I get some time. Most likely tomorrow. =) I hope you can wait till then."}}
{"actor":{"display_login":"zerratar"}}