Class FileHelper
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
Common file and path helpers.
public static class FileHelper
- Inheritance
-
FileHelper
- Inherited Members
Fields
BackwardSlash
A backward slash.
public static readonly char BackwardSlash
Field Value
ForwardSlash
A forward slash.
public static readonly char ForwardSlash
Field Value
NotSeparator
The directory separator that is not common for the current platform.
public static readonly char NotSeparator
Field Value
Separator
The required or default directory separator for this platform.
public static readonly char Separator
Field Value
Methods
DeleteIfExists(string?)
Checks deletes a file from disk without throwing exceptions.
public static void DeleteIfExists(string? path)
Parameters
pathstring
NormalizeDirectorySeparators(string)
Fixes the incoming path to have the default directory separators for the current platform.
public static string NormalizeDirectorySeparators(string path)
Parameters
pathstring