Table of Contents

Class FileHelper

Namespace
MonoGame.Framework.Content.Pipeline.Builder
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

char

ForwardSlash

A forward slash.

public static readonly char ForwardSlash

Field Value

char

NotSeparator

The directory seperator that is not common for the current platform.

public static readonly char NotSeparator

Field Value

char

Separator

The required or default directory seperator for this platform.

public static readonly char Separator

Field Value

char

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

Returns

string