C# Class Mosa.FileSystem.VFS.DirectoryNode

Represents a basic directory in the VFS namespace.
This class can be inherited if necessary to provide specialized directory handling if required.
Inheritance: NodeBase
Exibir arquivo Open project: tgiphil/MOSA-Project Class Usage Examples

Public Methods

Method Description
Create ( string name, VfsNodeType nodeType, object settings ) : IVfsNode

Creates the specified name.

Delete ( IVfsNode child, DirectoryEntry dentry ) : void

Called to delete a child from a directory.

This function deletes a child IVfsNode from a directory. If child is a directory, it will be empty before this call is executed. It is recommended to include a debug sanity check though. If the file system needs to know the name of the child to delete, it can retrieve it from DirectoryEntry.Name.

DirectoryNode ( IFileSystem fs ) : System.IO

Initializes a new instance of the DirectoryNode object.

Lookup ( string name ) : IVfsNode

Open ( FileAccess access, FileShare sharing ) : object

Opens the specified access.

Method Details

Create() public method

Creates the specified name.
public Create ( string name, VfsNodeType nodeType, object settings ) : IVfsNode
name string The name.
nodeType VfsNodeType Type of the node.
settings object The settings.
return IVfsNode

Delete() public method

Called to delete a child from a directory.
This function deletes a child IVfsNode from a directory. If child is a directory, it will be empty before this call is executed. It is recommended to include a debug sanity check though. If the file system needs to know the name of the child to delete, it can retrieve it from DirectoryEntry.Name.
The object does not support removal this way. There's most likely an object specific API to remove this IVfsNode.
public Delete ( IVfsNode child, DirectoryEntry dentry ) : void
child IVfsNode The IVfsNode interface of the child.
dentry DirectoryEntry The DirectoryEntry of the child.
return void

DirectoryNode() public method

Initializes a new instance of the DirectoryNode object.
public DirectoryNode ( IFileSystem fs ) : System.IO
fs IFileSystem The file system, which owns the node.
return System.IO

Lookup() public method

public Lookup ( string name ) : IVfsNode
name string
return IVfsNode

Open() public method

Opens the specified access.
public Open ( FileAccess access, FileShare sharing ) : object
access FileAccess The access.
sharing FileShare The sharing.
return object