VDirectory Class
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
This class contains static methods that work with virtual file system directories. This class provides methods that are functionally similar to the standard .NET Directory methods.
Syntax
public static class VDirectory
Inherited Members
Examples
//Create a built-in or custom VFS provider
var memoryProvider = new MemoryFileSystemProvider()
//Save the root path
var memoryProviderRootPath = memoryProvider.GetRootVDirectoryInfo().FullName;
//Create new directory 'Data' in the root directory
VDirectory.CreateDirectory(Path.Combine(memoryProviderRootPath, "Data"));
Methods
Name | Description |
---|---|
CreateDirectory(String) | Method creates a directory denoted by the |
Delete(String) | Deletes a directory identified by the |
Delete(String, Boolean) | Deletes a directory identified by the |
EnumerateDirectories(String) | Returns an enumerator that yields full paths to directories that are located in the directory identified by the |
EnumerateDirectories(String, String) | Returns an enumerator that yields full paths to directories
that are located in the directory identified by the |
EnumerateDirectories(String, String, SearchOption) | Returns an enumerator that yields full paths to directories
that are located in the directory identified by the |
EnumerateFiles(String) | Returns an enumerator that yields full paths to files that are located in the directory identified by the |
EnumerateFiles(String, String) | Returns an enumerator that yields full paths to files
that are located in the directory identified by the |
EnumerateFiles(String, String, SearchOption) | Returns an enumerator that yields full paths to files
that are located in the directory identified by the |
EnumerateFileSystemEntries(String) | Returns an enumerator that yields full paths to file system entries that are located in the directory identified by the |
EnumerateFileSystemEntries(String, String) | Returns an enumerator that yields full paths to file system entries
that are located in the directory identified by the |
EnumerateFileSystemEntries(String, String, SearchOption) | Returns an enumerator that yields full paths to file system entries
that are located in the directory identified by the |
Exists(String) | Method returns true when a directory exists on the given |
GetCreationTime(String) | Method returns the creation date and time of the directory. |
GetCreationTimeUtc(String) | Method returns the creation date and time of the directory. The time is expressed in the UTC format. |
GetDirectories(String) | Returns an array that contains full paths to directories that are located in the directory identified by the |
GetDirectories(String, String) | Returns an array that contains full paths to directories
that are located in the directory identified by the |
GetDirectories(String, String, SearchOption) | Returns an array that contains full paths to directories
that are located in the directory identified by the |
GetDirectoryRoot(String) | Method returns the root path of the virtual file system VDriveInfo object to which the directory, identified by the |
GetFiles(String) | Returns an array that contains full paths to files that are located in the directory identified by the |
GetFiles(String, String) | Returns an array that contains full paths to files
that are located in the directory identified by the |
GetFiles(String, String, SearchOption) | Returns an array that contains full paths to files
that are located in the directory identified by the |
GetFileSystemEntries(String) | Returns an array that contains full paths to file system entries that are located in the directory identified by the |
GetFileSystemEntries(String, String) | Returns an array that contains full paths to file system entries
that are located in the directory identified by the |
GetFileSystemEntries(String, String, SearchOption) | Returns an array that contains full paths to file system entries
that are located in the directory identified by the |
GetLastAccessTime(String) | Method returns the last access date and time of the directory. |
GetLastAccessTimeUtc(String) | Method returns the last access date and time of the directory. The time is expressed in the UTC format. |
GetLastWriteTime(String) | Method returns the last write date and time of the directory. |
GetLastWriteTimeUtc(String) | Method returns the last write date and time of the directory. The time is expressed in the UTC format. |
GetLogicalDrives() | Method returns an array that contains root paths for all virtual file system VDriveInfo objects. |
GetParent(String) | Method returns an instance of the VDirectoryInfo class that represents the parent of the directory identified by the |
Move(String, String) | Method moves a directory (or a file) identified by the |
SetCreationTime(String, DateTime) | Method sets the creation date and time of the directory. |
SetCreationTimeUtc(String, DateTime) | Method sets the creation date and time of the directory. |
SetLastAccessTime(String, DateTime) | Method sets the last access date and time of the directory. |
SetLastAccessTimeUtc(String, DateTime) | Method sets the last access date and time of the directory. |
SetLastWriteTime(String, DateTime) | Method sets the last write date and time of the directory. |
SetLastWriteTimeUtc(String, DateTime) | Method sets the last write date and time of the directory. |