C# Class Patcher.Data.DataFile

Afficher le fichier Open project: unforbidable/patcher

Méthodes publiques

Méthode Description
CopyFrom ( Stream input, bool updateOnly ) : bool

Copies a stream into the current data file, optionally only if does not exists and contains different data.

Delete ( ) : void
Exists ( ) : bool
GetRelativePath ( ) : string
GetRelativePath ( string path ) : string
Open ( ) : FileStream

Private Methods

Méthode Description
DataFile ( IDataFileProvider provider, FileMode mode, string fullPath, string requestedPath ) : System
EnsureDirectoryExists ( string path ) : void

Method Details

CopyFrom() public méthode

Copies a stream into the current data file, optionally only if does not exists and contains different data.
public CopyFrom ( Stream input, bool updateOnly ) : bool
input Stream The Stream to copy data from.
updateOnly bool If true, file will not be recreated if already exists and contains the same data.
Résultat bool

Delete() public méthode

public Delete ( ) : void
Résultat void

Exists() public méthode

public Exists ( ) : bool
Résultat bool

GetRelativePath() public méthode

public GetRelativePath ( ) : string
Résultat string

GetRelativePath() public static méthode

public static GetRelativePath ( string path ) : string
path string
Résultat string

Open() public méthode

public Open ( ) : FileStream
Résultat System.IO.FileStream