Class DirectoryInfoExtensions
Inherited Members
Namespace: PoeShared.Scaffolding
Assembly: PoeShared.dll
Syntax
public static class DirectoryInfoExtensions
Methods
| Name | Description |
|---|---|
| GetFileInfo(DirectoryInfo, string) | Creates a FileInfo instance for a file located in the specified directory or its subdirectories. |
| GetFilesSafe(DirectoryInfo, string, SearchOption) | Recursively retrieves files from the specified directory and its subdirectories matching a given search pattern. This method will skip any inaccessible directories due to permission issues and continue with the next accessible directory. |
| GetSubdirectory(DirectoryInfo, string) | Creates a DirectoryInfo instance representing a subdirectory within the specified parent directory. |
| IsDirOrSubDir(DirectoryInfo, DirectoryInfo) | Checks if a given path is a directory or a subdirectory of another. |
| IsParentOf(DirectoryInfo, DirectoryInfo) | Checks if a given path is a parent directory of another. |
| IsSubDir(DirectoryInfo, DirectoryInfo) | Determines if a given path is a subdirectory of another path. |
| RemoveDirectory(DirectoryInfo) | Recursively deletes a directory along with all its files and subdirectories. It first resets any special file attributes (like read-only or hidden) to ensure that all files and directories can be deleted without authorization issues. |