Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing a root drive fails #17

Open
ForeverZer0 opened this issue Sep 12, 2018 · 3 comments
Open

Syncing a root drive fails #17

ForeverZer0 opened this issue Sep 12, 2018 · 3 comments

Comments

@ForeverZer0
Copy link

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.

I 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:

var info = new DirectoryInfo(path);
var root = info.Root.FullName == info.FullName;
if (!root && info.Attributes.HasFlag(FileAttributes.System))
	continue;
@zerratar
Copy link
Owner

Good catch and thank you for reporting this issue, @ForeverZer0 !

I will fix this as soon as I get some time. Most likely tomorrow. =) I hope you can wait till then.

@ForeverZer0
Copy link
Author

No, problem, and no hurry either. It is easy oversight (speaking from first-hand experience, lol). 👍

@zerratar
Copy link
Owner

@ForeverZer0 Unfortunately I didn't have enough time on my hands after all to create a fix when I told you I would. I did get a couple of minutes over just now so I have uploaded a temporarily and hopefully working solution for now. If you can try it out and see if it works for you; and report back, I would appreciate it a lot :-)

And thank you for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants