The Directory class is used to easily access folders on the disk or in .pak files. More...
Static Public Member Functions | |
| static bool | Exists (string path) |
| Checks if the directory at the specified path exists on disk or in a .pak file. Empty directories are not included in .pak files and will always return false. More... | |
| static IEnumerable< string > | EnumerateFiles (string path, string searchPattern="*.*") |
| Enumerates over all the files in the specified directory on the disk or in a .pak file. The search pattern can be used to filter for specific files. If the directory does not exists this will throw an FileNotFoundException. Please note that empty directories in a .pak file will also throw an FileNotFoundException. More... | |
The Directory class is used to easily access folders on the disk or in .pak files.
|
inline static |
Enumerates over all the files in the specified directory on the disk or in a .pak file. The search pattern can be used to filter for specific files. If the directory does not exists this will throw an FileNotFoundException. Please note that empty directories in a .pak file will also throw an FileNotFoundException.
| path | Path to the directory. |
| searchPattern | Search pattern to filter the files with. |
|
inline static |
Checks if the directory at the specified path exists on disk or in a .pak file. Empty directories are not included in .pak files and will always return false.
true, if the directory exists, false otherwise.| path | Path to the directory. |