C# Class kOS.Safe.Persistence.Archive

Inheritance: Volume
Show file Open project: KSP-KOS/KOS Class Usage Examples

Private Properties

Property Type Description
CreateArchiveDirectory void
Search System.IO.FileSystemInfo

Public Methods

Method Description
Archive ( string archiveFolder ) : System
Clear ( ) : void
ConvertFromWindowsNewlines ( byte bytes ) : byte[]
ConvertToWindowsNewlines ( byte bytes ) : byte[]
CreateDirectory ( VolumePath path ) : VolumeDirectory
CreateFile ( VolumePath path ) : VolumeFile
Delete ( VolumePath path, bool ksmDefault = false ) : bool
Exists ( VolumePath path, bool ksmDefault = false ) : bool
GetArchivePath ( VolumePath path ) : string
Open ( VolumePath path, bool ksmDefault = false ) : VolumeItem
RequiredPower ( ) : float
SaveFile ( VolumePath path, FileContent content, bool verifyFreeSpace = true ) : VolumeFile

Private Methods

Method Description
CreateArchiveDirectory ( ) : void
Search ( VolumePath volumePath, bool ksmDefault ) : FileSystemInfo

Get the file from the OS.

Method Details

Archive() public method

public Archive ( string archiveFolder ) : System
archiveFolder string
return System

Clear() public method

public Clear ( ) : void
return void

ConvertFromWindowsNewlines() public static method

public static ConvertFromWindowsNewlines ( byte bytes ) : byte[]
bytes byte
return byte[]

ConvertToWindowsNewlines() public static method

public static ConvertToWindowsNewlines ( byte bytes ) : byte[]
bytes byte
return byte[]

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

GetArchivePath() public method

public GetArchivePath ( VolumePath path ) : string
path VolumePath
return string

Open() public method

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

RequiredPower() public method

public RequiredPower ( ) : float
return float

SaveFile() public method

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