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
Afficher le fichier Open project: tgiphil/MOSA-Project Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat IVfsNode

Delete() public méthode

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.
Résultat void

DirectoryNode() public méthode

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

Lookup() public méthode

public Lookup ( string name ) : IVfsNode
name string
Résultat IVfsNode

Open() public méthode

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