Skip to main content

OpenTD reference 2026 R1

Class FileUtility

Last update: 09.03.2026

Namespace: OpenTD.Utility
Assembly: OpenTD.dll

Utility methods for working with files.

public static class FileUtility

Inheritance

object ← FileUtility

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

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

string

System.String.

IsDirectory(string)

Determines whether the specified path is a directory.

public static bool IsDirectory(string path)

Parameters

path string

The path.

Returns

bool

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.

Returns

bool

Connect with Ansys