Property | Type | Description | |
---|---|---|---|
Null | |||
System |
Method | Description | |
---|---|---|
Exists ( string path ) : bool |
Get whether the file exists.
|
|
GetFiles ( string path, string pattern, SearchOption option = SearchOption.TopDirectoryOnly ) : string[] |
List the files within the path.
|
|
Load ( AssetManager manager, string path, Asset context = null ) : Asset |
Load an Asset using this FileManager.
|
|
Open ( string path, FileMode mode, FileAccess access, FileShare share ) : Stream |
Open a file.
|
|
OpenCreate ( string path, FileShare share = FileShare.ReadWrite ) : Stream |
Open a new file for writing; if the file already exists, delete it first. OpenWrite can be used to open the file if it already exists but create it otherwise.
|
|
OpenRead ( string path, FileShare share = FileShare.Delete|FileShare.ReadWrite ) : Stream |
Open an existing file for reading.
|
|
OpenReader ( string name, ByteOrder byteOrder = ByteOrder.LittleEndian, FileShare share = FileShare.Delete|FileShare.ReadWrite ) : |
Open an existing file.
|
|
OpenWrite ( string path, FileShare share = FileShare.ReadWrite ) : Stream |
Open an existing or new file for writing. OpenCreate can be used to only create files.
|
|
TryOpen ( string path, FileMode mode, FileAccess access, FileShare share ) : Stream |
Attempt to open a file.
|
|
TryOpenRead ( string path, FileShare share = FileShare.Delete|FileShare.ReadWrite ) : Stream |
Attempt to open a file for reading.
|
public abstract Exists ( string path ) : bool | ||
path | string | The path to the file. |
return | bool |
public GetFiles ( string path, string pattern, SearchOption option = SearchOption.TopDirectoryOnly ) : string[] | ||
path | string | |
pattern | string | |
option | SearchOption | |
return | string[] |
public Load ( AssetManager manager, string path, Asset context = null ) : Asset | ||
manager | AssetManager | |
path | string | |
context | Asset | |
return | Asset |
public abstract Open ( string path, FileMode mode, FileAccess access, FileShare share ) : Stream | ||
path | string | |
mode | FileMode | |
access | FileAccess | |
share | FileShare | |
return | Stream |
public OpenCreate ( string path, FileShare share = FileShare.ReadWrite ) : Stream | ||
path | string | |
share | FileShare | |
return | Stream |
public OpenRead ( string path, FileShare share = FileShare.Delete|FileShare.ReadWrite ) : Stream | ||
path | string | |
share | FileShare | |
return | Stream |
public OpenReader ( string name, ByteOrder byteOrder = ByteOrder.LittleEndian, FileShare share = FileShare.Delete|FileShare.ReadWrite ) : |
||
name | string | |
byteOrder | ByteOrder | |
share | FileShare | |
return |
public OpenWrite ( string path, FileShare share = FileShare.ReadWrite ) : Stream | ||
path | string | |
share | FileShare | |
return | Stream |
public TryOpen ( string path, FileMode mode, FileAccess access, FileShare share ) : Stream | ||
path | string | |
mode | FileMode | |
access | FileAccess | |
share | FileShare | |
return | Stream |
public TryOpenRead ( string path, FileShare share = FileShare.Delete|FileShare.ReadWrite ) : Stream | ||
path | string | |
share | FileShare | |
return | Stream |