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.
| Parameter | Type | Description |
|---|---|---|
path | string |
Returns DirectoryInfo
Exists(string path)
public static bool Exists(string path)
Determines if the specified file exists. (inherited)
| Parameter | Type | Description |
|---|---|---|
path | string |
Returns bool — true if the file exists otherwise false.
EnumerateFiles(string path)
public static IEnumerable EnumerateFiles(string path)
No description available.
| Parameter | Type | Description |
|---|---|---|
path | string |
Returns IEnumerable
EnumerateDirectories(string path)
public static IEnumerable EnumerateDirectories(string path)
No description available.
| Parameter | Type | Description |
|---|---|---|
path | string |
Returns IEnumerable
EnumerateFileSystemEntries(string path)
public static IEnumerable EnumerateFileSystemEntries(string path)
No description available.
| Parameter | Type | Description |
|---|---|---|
path | string |
Returns IEnumerable
GetFiles(string path)
public static string[] GetFiles(string path)
No description available.
| Parameter | Type | Description |
|---|---|---|
path | string |
Returns string[]
GetDirectories(string path)
public static string[] GetDirectories(string path)
No description available.
| Parameter | Type | Description |
|---|---|---|
path | string |
Returns string[]
GetCurrentDirectory()
public static string GetCurrentDirectory()
No description available.
Returns string
SetCurrentDirectory(string path)
public static void SetCurrentDirectory(string path)
No description available.
| Parameter | Type | Description |
|---|---|---|
path | string |
Move(string sourceDirName, string destDirName)
public static void Move(string sourceDirName, string destDirName)
Moves a file from the source to the destination. (inherited)
| Parameter | Type | Description |
|---|---|---|
sourceDirName | string | |
destDirName | string |
Delete(string path)
public static void Delete(string path)
Deletes a file from the device. (inherited)
| Parameter | Type | Description |
|---|---|---|
path | string |
Delete(string path, bool recursive)
public static void Delete(string path, bool recursive)
No description available.
| Parameter | Type | Description |
|---|---|---|
path | string | |
recursive | bool |