-
Notifications
You must be signed in to change notification settings - Fork 4
Home
In this wiki we provide a few tutorials regarding how to use System.IO.SafeTraversal. Because it mostly contains same operations, we will explain the most important ones.
For both .NET Framework 4.5+ and .NET Core 2.0, you'll find that core operations are on the TraverseFiles(...)/GetFiles(...) and TraverseDirectories(...)/GetDirectories(...) methods. They are huge methods that contains many overloaded versions that accept various parameters. And both also contains FindParents(DirectoryInfo path) and FindParents(FileInfo file) methods for finding all the parents from a path/a file all the way up to the root (C:\ or D:\ ...). For .NET Core part, it doesn't contain IsSafeFile(...) method and file safety checking option for traversing files or directories as .NET Core doesn't support System.Security.AccessControl namespace.