DirectoryNode Class
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 7.0.9147)
Represents a directory (folder) in the file system.
Syntax
public class DirectoryNode : NodeBase, IEnumerable<NodeBase>, IEnumerable
Inherited Members
Constructors
Name | Description |
---|---|
Directory |
Initializes a new instance of Directory |
Properties
Name | Description |
---|---|
Attributes | Gets attributes of the node.
Implementation of the property calls File |
Context | Gets or sets user-defined object.
Inherited from Node |
Extension | Gets the extension of the node. If the node does not have extension, then returs empty string. Name = myfile.txt. Extension returns 'txt' (without quotes).
Name = myDirectory. Extension returns empty string. Inherited from Node |
Is |
Returns true if the node is deleted (does not exist in the file system), otherwise false.
Implementation of the property calls File |
Is |
Returns true if the current node is Directory |
Is |
Returns true if the current node is File |
Is |
Returns true if the current node is root Directory |
Length | Gets the length of the content returned by the method Get |
Name | Gets the name of the node.
Inherited from Node |
Node |
Gets the type of the node.
NodeType.File for files. NodeType.Directory for directories. Inherited from Node |
Parent | Gets the parent directory of the node. For the root directory returns null. Inherited from Node |
Path | Full path of the node. Inherited from Node |
Time |
Gets the time info of the node. CreationTime. AccessTime. LastWriteTime. Concrete file system providers are responsible for the correctness and validity of the returned dates.
Implementation of the property calls File |
Methods
Name | Description |
---|---|
As |
Converts this instance to an equivalent instance of the VDirectory |
Copy |
Copies the node to the |
Create() | Creates this node, if it does not exist.
Inherited from Node |
Create |
Creates new (virtual) File |
Delete() | Deletes this node.
Inherited from Node |
Equals(Node |
Indicates whether the current Node |
Equals(Object) | Determines whether the specified |
Exists() | Gets a value indicating whether the node exists.
Inherited from Node |
Get |
Gets an enumerator that iterates through the child nodes in the current node.
Inherited from Node |
Get |
Gets an enumerator that iterates through the child nodes in the current node.
Only nodes whose Node |
Get |
Gets the content of the node.
Inherited from Node |
Get |
Gets an enumerator that iterates through the directories in the current directory. |
Get |
Gets an enumerator that iterates through the child nodes in the current node.
Inherited from Node |
Get |
Gets an enumerator that iterates through the files in the current directory. |
Get |
Gets a hash code of this object.
Inherited from Node |
Get |
Gets the node with real path (relative to File Calling method GetUnaliasedNode on the already unwrapped node has no effect - method returns this (already unwrapped) instance.
Method GetUnaliasedNode is typically used in the File |
Move |
Moves this node to the |
Rename(String) | Renames this node.
Inherited from Node |
Set |
Sets attributes of the node.
Inherited from Node |
Set |
Sets a new content of the node. Old content will be deleted!
Inherited from Node |
Set |
Sets the time info of the node.
Inherited from Node |
To |
Returns a string that represents the current Node |
Explicit Interface Implementations
Name | Description |
---|---|
IEnumerable. |
Gets an enumerator that iterates through the child nodes in the current node.
Inherited from Node |