Class FileUtility
Last update: 09.03.2026Namespace: OpenTD.Utility
Assembly: OpenTD.dll
Utility methods for working with files.
public static class FileUtility
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
GetEndOfPath(string)
Returns either the filename or directory name at the end of the input path.
public static string GetEndOfPath(string path)
Parameters
path string
The path.
Returns
System.String.
IsDirectory(string)
Determines whether the specified path is a directory.
public static bool IsDirectory(string path)
Parameters
path string
The path.
Returns
true if the specified path is a directory; otherwise, false.
IsFileLocked(FileInfo)
Determines whether a file is locked for use.
public static bool IsFileLocked(FileInfo file)
Parameters
file FileInfo
The file.