Skip to main content
Namespace: OpenTD.Utility
Assembly: OpenTD.dll
Utility methods for working with files.

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.

Parameters

path string The path.

Returns

string System.String.

IsDirectory(string)

Determines whether the specified path is a directory.

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.

Parameters

file FileInfo The file.

Returns

bool