Skip to main content

Directory Class

Namespace: System.IO · Assembly: GHIElectronics.TinyCLR.IO

Static helpers for directory management — create, delete, enumerate, get current directory.

public sealed class Directory

Methods

GetLogicalDrives()

public static string[] GetLogicalDrives()

No description available.

Returns string[]

CreateDirectory(string path)

public static DirectoryInfo CreateDirectory(string path)

No description available.

ParameterTypeDescription
pathstring

Returns DirectoryInfo

Exists(string path)

public static bool Exists(string path)

Determines if the specified file exists. (inherited)

ParameterTypeDescription
pathstring

Returns bool — true if the file exists otherwise false.

EnumerateFiles(string path)

public static IEnumerable EnumerateFiles(string path)

No description available.

ParameterTypeDescription
pathstring

Returns IEnumerable

EnumerateDirectories(string path)

public static IEnumerable EnumerateDirectories(string path)

No description available.

ParameterTypeDescription
pathstring

Returns IEnumerable

EnumerateFileSystemEntries(string path)

public static IEnumerable EnumerateFileSystemEntries(string path)

No description available.

ParameterTypeDescription
pathstring

Returns IEnumerable

GetFiles(string path)

public static string[] GetFiles(string path)

No description available.

ParameterTypeDescription
pathstring

Returns string[]

GetDirectories(string path)

public static string[] GetDirectories(string path)

No description available.

ParameterTypeDescription
pathstring

Returns string[]

GetCurrentDirectory()

public static string GetCurrentDirectory()

No description available.

Returns string

SetCurrentDirectory(string path)

public static void SetCurrentDirectory(string path)

No description available.

ParameterTypeDescription
pathstring

Move(string sourceDirName, string destDirName)

public static void Move(string sourceDirName, string destDirName)

Moves a file from the source to the destination. (inherited)

ParameterTypeDescription
sourceDirNamestring
destDirNamestring

Delete(string path)

public static void Delete(string path)

Deletes a file from the device. (inherited)

ParameterTypeDescription
pathstring

Delete(string path, bool recursive)

public static void Delete(string path, bool recursive)

No description available.

ParameterTypeDescription
pathstring
recursivebool