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 seperator that is not common for the current platform.
public static readonly char NotSeparator
Field Value
Separator
The required or default directory seperator 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
path
string
NormalizeDirectorySeparators(string)
Fixes the incoming path to have the default directory seperators for the current platform.
public static string NormalizeDirectorySeparators(string path)
Parameters
path
string