-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
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;Metadata
Metadata
Assignees
Labels
No labels