C# Class VirtualFileSystem.VFS

Show file Open project: SummerWish/vfs Class Usage Examples

Public Properties

Property Type Description
vfs VFSCore

Public Methods

Method Description
AssertNameValid ( String name ) : void

文件名无效时抛出异常

AssertPathValid ( String path ) : void

路径无效时抛出异常

Format ( UInt32 inodeCapacity, UInt16 blockSizeKB ) : void

格式化磁盘

GetDevice ( ) : DeviceAdapter.AbstractDevice
GetPathDirectory ( String path ) : String

获取一个路径的目录

GetPathName ( String path ) : String

获取一个路径的文件名

GetSuperBlock ( ) : _SuperBlock
IsFormated ( ) : System.Boolean

是否已格式化

IsNameValid ( String name ) : System.Boolean

判断一个文件名是否有效

IsPathValid ( String path ) : System.Boolean

判断一个路径是否有效

NewDirectory ( String path ) : Directory
NewFile ( String path, FileMode fileMode ) : File
VFS ( AbstractDevice device ) : System

Method Details

AssertNameValid() public static method

文件名无效时抛出异常
public static AssertNameValid ( String name ) : void
name String
return void

AssertPathValid() public static method

路径无效时抛出异常
public static AssertPathValid ( String path ) : void
path String
return void

Format() public method

格式化磁盘
public Format ( UInt32 inodeCapacity, UInt16 blockSizeKB ) : void
inodeCapacity System.UInt32
blockSizeKB System.UInt16
return void

GetDevice() public method

public GetDevice ( ) : DeviceAdapter.AbstractDevice
return DeviceAdapter.AbstractDevice

GetPathDirectory() public static method

获取一个路径的目录
public static GetPathDirectory ( String path ) : String
path String
return String

GetPathName() public static method

获取一个路径的文件名
public static GetPathName ( String path ) : String
path String
return String

GetSuperBlock() public method

public GetSuperBlock ( ) : _SuperBlock
return _SuperBlock

IsFormated() public method

是否已格式化
public IsFormated ( ) : System.Boolean
return System.Boolean

IsNameValid() public static method

判断一个文件名是否有效
public static IsNameValid ( String name ) : System.Boolean
name String
return System.Boolean

IsPathValid() public static method

判断一个路径是否有效
public static IsPathValid ( String path ) : System.Boolean
path String
return System.Boolean

NewDirectory() public method

public NewDirectory ( String path ) : Directory
path String
return Directory

NewFile() public method

public NewFile ( String path, FileMode fileMode ) : File
path String
fileMode FileMode
return File

VFS() public method

public VFS ( AbstractDevice device ) : System
device AbstractDevice
return System

Property Details

vfs public property

public VFSCore,VirtualFileSystem vfs
return VFSCore