Class FileSystem
Inheritance
System.Object
FileSystem
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: AssetRipper.IO.Files.dll
Syntax
public abstract class FileSystem
Fields
|
Improve this Doc
View Source
MaxFileNameLength
Declaration
public const int MaxFileNameLength = 255
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Improve this Doc
View Source
Directory
Declaration
protected FileSystem.DirectoryImplementation Directory { get; }
Property Value
|
Improve this Doc
View Source
File
Declaration
public abstract FileSystem.FileImplementation File { get; }
Property Value
|
Improve this Doc
View Source
Path
Declaration
protected PathImplementation Path { get; }
Property Value
Type |
Description |
PathImplementation |
|
Methods
|
Improve this Doc
View Source
Create(String)
Declaration
public virtual Stream Create(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.IO.Stream |
|
|
Improve this Doc
View Source
Delete(String)
Declaration
public virtual void Delete(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public sealed override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
Exists(String)
Declaration
public virtual bool Exists(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
FixInvalidFileNameCharacters(String)
Declaration
public static string FixInvalidFileNameCharacters(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
FixInvalidPathCharacters(String)
Declaration
public static string FixInvalidPathCharacters(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public sealed override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
GetUniqueName(String, String, Int32)
Declaration
public static string GetUniqueName(string dirPath, string fileName, int maxNameLength)
Parameters
Type |
Name |
Description |
System.String |
dirPath |
|
System.String |
fileName |
|
System.Int32 |
maxNameLength |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
IsReservedName(String)
Declaration
public static bool IsReservedName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
OpenRead(String)
Declaration
public virtual Stream OpenRead(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.IO.Stream |
|
|
Improve this Doc
View Source
OpenWrite(String)
Declaration
public virtual Stream OpenWrite(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.IO.Stream |
|
|
Improve this Doc
View Source
ReadAllBytes(String)
Declaration
public virtual byte[] ReadAllBytes(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
ReadAllText(String)
Declaration
public virtual string ReadAllText(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ReadAllText(String, Encoding)
Declaration
public virtual string ReadAllText(string path, Encoding encoding)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Text.Encoding |
encoding |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
RemoveCloneSuffixes(String)
Declaration
public static string RemoveCloneSuffixes(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
RemoveInstanceSuffixes(String)
Declaration
public static string RemoveInstanceSuffixes(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToString()
Declaration
public sealed override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
WriteAllBytes(String, ReadOnlySpan<Byte>)
Declaration
public virtual void WriteAllBytes(string path, ReadOnlySpan<byte> bytes)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.ReadOnlySpan<System.Byte> |
bytes |
|
|
Improve this Doc
View Source
WriteAllText(String, ReadOnlySpan<Char>)
Declaration
public virtual void WriteAllText(string path, ReadOnlySpan<char> contents)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.ReadOnlySpan<System.Char> |
contents |
|
|
Improve this Doc
View Source
WriteAllText(String, ReadOnlySpan<Char>, Encoding)
Declaration
public virtual void WriteAllText(string path, ReadOnlySpan<char> contents, Encoding encoding)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.ReadOnlySpan<System.Char> |
contents |
|
System.Text.Encoding |
encoding |
|