FileHelper
Namespace: Murder.Serialization
Assembly: Murder.dll
public static class FileHelper
⭐ Methods
Clean(string)
public ReadOnlySpan<T> Clean(string str)
Parameters
str
string
Returns
ReadOnlySpan<T>
EscapePath(string)
public string EscapePath(string path)
Parameters
path
string
Returns
string
ExtensionForOperatingSystem()
public string ExtensionForOperatingSystem()
Returns the assembly extension for the target operating system. For example, if targeting Windows, this returns ".dll".
Returns
string
Exceptions
PlatformNotSupportedException
GetPath(String[])
public string GetPath(String[] paths)
Gets the rooted path from a relative one
Parameters
paths
string[]
Returns
string
GetPathWithoutExtension(string)
public string GetPathWithoutExtension(string path)
Parameters
path
string
Returns
string
GetSaveBasePath(string)
public string GetSaveBasePath(string gameName)
Gets the base path for save files.
Parameters
gameName
string
Returns
string
⚡