VDirectoryInfo Class
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)
Class represents a directory in the virtual file system.
This class provides properties and methods that are functionally similar to the standard .NET Directory
Syntax
public sealed class VDirectoryInfo : VFileSystemInfo
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
VDirectoryInfo dataDirInfo = new VDirectoryInfo(Path.Combine(memoryProviderRootPath, "Data"));
dataDirInfo.Create();
Constructors
Name | Description |
---|---|
VDirectory |
Initializes a new instance of the VDirectory |
Fields
Name | Description |
---|---|
Full |
Full path of the node.
Inherited from VFile |
Original |
Original path of the node.
|
Properties
Name | Description |
---|---|
Attributes | Gets or sets the attributes for the file or directory.
Inherited from VFile |
Creation |
Gets or sets the creation date and time for the file or directory.
Inherited from VFile |
Creation |
Gets or sets the creation date and time for the file or directory.
The time is expressed in the UTC format.
Inherited from VFile |
Exists | Method returns true when the file or directory exists; otherwise returns false.
Inherited from VFile |
Extension | Gets the extension of the file.
Inherited from VFile |
Full |
Gets the full path of the file.
Inherited from VFile |
Last |
Gets or sets the last access date and time for the file or directory.
Inherited from VFile |
Last |
Gets or sets the last access date and time for the file or directory.
The time is expressed in the UTC format.
Inherited from VFile |
Last |
Gets or sets the last write date and time for the file or directory.
Inherited from VFile |
Last |
Gets or sets the last write date and time for the file or directory.
The time is expressed in the UTC format.
Inherited from VFile |
Name | Gets the name of the file or directory.
Inherited from VFile |
Parent | Gets an instance of the VDirectory |
Root | Gets an instance of the VDirectory |
Methods
Name | Description |
---|---|
Create() | Method creates a directory. Any non-existent parent directory is created as well. |
Create |
Method creates a subdirectory for the specified |
Delete() | Deletes a directory. |
Delete(Boolean) | Deletes a directory. |
Enumerate |
Returns an enumerator that yields instances of the VDirectory |
Enumerate |
Returns an enumerator that yields instances of the VDirectory |
Enumerate |
Returns an enumerator that yields instances of the VDirectory |
Enumerate |
Returns an enumerator that yields instances of the VFile |
Enumerate |
Returns an enumerator that yields instances of the VFile |
Enumerate |
Returns an enumerator that yields instances of the VFile |
Enumerate |
Returns an enumerator that yields instances of the VFile |
Enumerate |
Returns an enumerator that yields instances of the VFile |
Enumerate |
Returns an enumerator that yields instances of the VFile |
Get |
Returns an array that contains instances of the VDirectory |
Get |
Returns an array that contains instances of the VDirectory |
Get |
Returns an array that contains instances of the VDirectory |
Get |
Returns an array that contains instances of the VFile |
Get |
Returns an array that contains full paths to files
that are located in a directory
and their name matches the given |
Get |
Returns an array that contains instances of the VFile |
Get |
Returns an array that contains instances of the VFile |
Get |
Returns an array that contains full paths to instances of the VFile |
Get |
Returns an array that contains instances of the VFile |
Move |
Method moves a directory to the location denoted by the |
Refresh() | Method tries to refresh values of properties in this instance.
Inherited from VFile |
To |
Method returns the full path of the directory or file.
Inherited from VFile |