C# Class Terraria.Utilities.FileUtilities

Datei anzeigen Open project: EmuDevs/EDTerraria

Public Methods

Method Description
Copy ( string source, string destination, bool overwrite = true ) : void
Delete ( string path ) : void
Exists ( string path ) : bool
GetFileName ( string path, bool includeExtension = true ) : string
GetFullPath ( string path ) : string
GetParentFolderPath ( string path, bool includeExtension = true ) : string
Move ( string source, string destination, bool overwrite = true ) : void
ReadAllBytes ( string path ) : byte[]
Write ( string path, byte data, int length ) : void
WriteAllBytes ( string path, byte data ) : void

Method Details

Copy() public static method

public static Copy ( string source, string destination, bool overwrite = true ) : void
source string
destination string
overwrite bool
return void

Delete() public static method

public static Delete ( string path ) : void
path string
return void

Exists() public static method

public static Exists ( string path ) : bool
path string
return bool

GetFileName() public static method

public static GetFileName ( string path, bool includeExtension = true ) : string
path string
includeExtension bool
return string

GetFullPath() public static method

public static GetFullPath ( string path ) : string
path string
return string

GetParentFolderPath() public static method

public static GetParentFolderPath ( string path, bool includeExtension = true ) : string
path string
includeExtension bool
return string

Move() public static method

public static Move ( string source, string destination, bool overwrite = true ) : void
source string
destination string
overwrite bool
return void

ReadAllBytes() public static method

public static ReadAllBytes ( string path ) : byte[]
path string
return byte[]

Write() public static method

public static Write ( string path, byte data, int length ) : void
path string
data byte
length int
return void

WriteAllBytes() public static method

public static WriteAllBytes ( string path, byte data ) : void
path string
data byte
return void