C# Class VirtualFileSystem.INodeDirectory

ファイルを表示 Open project: SummerWish/vfs Class Usage Examples

Public Methods

Method Description
Add ( String name, INode inode ) : System.Boolean

添加一个文件目录项

Add ( String name, INodeDirectory dir ) : System.Boolean

添加一个目录目录项

Contains ( String name ) : System.Boolean

返回是否包含目录项

Create ( VFSCore vfs ) : INodeDirectory

创建一个新目录

Delete ( String name ) : System.Boolean

删除一个目录项

Find ( String name ) : UInt32

查找目录项的 inode

INodeDirectory ( VFSCore vfs, INode inode ) : System
List ( ) : UInt32>>.List

列出所有目录项

Load ( VFSCore vfs, INode inode ) : INodeDirectory

根据 inode 建立 INodeDirectory

Load ( VFSCore vfs, UInt32 inodeIndex ) : INodeDirectory

根据 inode index 建立 INodeDirectory

Load ( ) : void

从存储介质上载入该目录

Rename ( String oldName, String newName ) : System.Boolean

重命名一个目录项

Resolve ( VFSCore vfs, String path ) : INodeDirectory

根据路径解析目录,路径必须以 / 结尾

Size ( ) : int

包含目录项个数

Private Methods

Method Description
AddParent ( UInt32 inodeIndex ) : System.Boolean

添加父目录

AddSelf ( ) : System.Boolean

添加本目录

Save ( ) : void

持久化该目录

Method Details

Add() public method

添加一个文件目录项
public Add ( String name, INode inode ) : System.Boolean
name String
inode INode
return System.Boolean

Add() public method

添加一个目录目录项
public Add ( String name, INodeDirectory dir ) : System.Boolean
name String
dir INodeDirectory
return System.Boolean

Contains() public method

返回是否包含目录项
public Contains ( String name ) : System.Boolean
name String
return System.Boolean

Create() public static method

创建一个新目录
public static Create ( VFSCore vfs ) : INodeDirectory
vfs VFSCore
return INodeDirectory

Delete() public method

删除一个目录项
public Delete ( String name ) : System.Boolean
name String
return System.Boolean

Find() public method

查找目录项的 inode
public Find ( String name ) : UInt32
name String
return System.UInt32

INodeDirectory() public method

public INodeDirectory ( VFSCore vfs, INode inode ) : System
vfs VFSCore
inode INode
return System

List() public method

列出所有目录项
public List ( ) : UInt32>>.List
return UInt32>>.List

Load() public static method

根据 inode 建立 INodeDirectory
public static Load ( VFSCore vfs, INode inode ) : INodeDirectory
vfs VFSCore
inode INode
return INodeDirectory

Load() public static method

根据 inode index 建立 INodeDirectory
public static Load ( VFSCore vfs, UInt32 inodeIndex ) : INodeDirectory
vfs VFSCore
inodeIndex System.UInt32
return INodeDirectory

Load() public method

从存储介质上载入该目录
public Load ( ) : void
return void

Rename() public method

重命名一个目录项
public Rename ( String oldName, String newName ) : System.Boolean
oldName String
newName String
return System.Boolean

Resolve() public static method

根据路径解析目录,路径必须以 / 结尾
public static Resolve ( VFSCore vfs, String path ) : INodeDirectory
vfs VFSCore
path String
return INodeDirectory

Size() public method

包含目录项个数
public Size ( ) : int
return int