C# Класс 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.
Наследование: NodeBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Create() публичный Метод

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.
Результат IVfsNode

Delete() публичный Метод

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.
Результат void

DirectoryNode() публичный Метод

Initializes a new instance of the DirectoryNode object.
public DirectoryNode ( IFileSystem fs ) : System.IO
fs IFileSystem The file system, which owns the node.
Результат System.IO

Lookup() публичный Метод

public Lookup ( string name ) : IVfsNode
name string
Результат IVfsNode

Open() публичный Метод

Opens the specified access.
public Open ( FileAccess access, FileShare sharing ) : object
access FileAccess The access.
sharing FileShare The sharing.
Результат object