C# Class kOS.Safe.Persistence.Harddisk

Inheritance: Volume
Mostrar archivo Open project: KSP-KOS/KOS Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
CreateDirectory ( VolumePath path ) : VolumeDirectory
CreateFile ( VolumePath path ) : VolumeFile
Delete ( VolumePath path, bool ksmDefault = false ) : bool
Exists ( VolumePath path, bool ksmDefault = false ) : bool
Harddisk ( int size ) : System
Open ( VolumePath path, bool ksmDefault = false ) : VolumeItem
SaveFile ( VolumePath path, FileContent content, bool verifyFreeSpace = true ) : VolumeFile

Private Methods

Method Description
ParentDirectoryForPath ( VolumePath path, bool create = false ) : HarddiskDirectory

Method Details

Clear() public method

public Clear ( ) : void
return void

CreateDirectory() public method

public CreateDirectory ( VolumePath path ) : VolumeDirectory
path VolumePath
return VolumeDirectory

CreateFile() public method

public CreateFile ( VolumePath path ) : VolumeFile
path VolumePath
return VolumeFile

Delete() public method

public Delete ( VolumePath path, bool ksmDefault = false ) : bool
path VolumePath
ksmDefault bool
return bool

Exists() public method

public Exists ( VolumePath path, bool ksmDefault = false ) : bool
path VolumePath
ksmDefault bool
return bool

Harddisk() public method

public Harddisk ( int size ) : System
size int
return System

Open() public method

public Open ( VolumePath path, bool ksmDefault = false ) : VolumeItem
path VolumePath
ksmDefault bool
return VolumeItem

SaveFile() public method

public SaveFile ( VolumePath path, FileContent content, bool verifyFreeSpace = true ) : VolumeFile
path VolumePath
content FileContent
verifyFreeSpace bool
return VolumeFile