You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mirza Ghulam Rasyid edited this page Nov 20, 2017
·
1 revision
Welcome to the System.IO.SafeTraversal wiki!
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.