C# Class NuGet.PhysicalFileSystem

Inheritance: IFileSystem
Afficher le fichier Open project: xero-github/Nuget Class Usage Examples

Méthodes publiques

Méthode Description
AddFile ( string path, Stream stream ) : void
DeleteDirectory ( string path ) : void
DeleteDirectory ( string path, bool recursive ) : void
DeleteFile ( string path ) : void
DirectoryExists ( string path ) : bool
FileExists ( string path ) : bool
GetCreated ( string path ) : DateTimeOffset
GetDirectories ( string path ) : IEnumerable
GetFiles ( string path, bool recursive ) : IEnumerable
GetFiles ( string path, string filter, bool recursive ) : IEnumerable
GetFullPath ( string path ) : string
GetLastAccessed ( string path ) : DateTimeOffset
GetLastModified ( string path ) : DateTimeOffset
OpenFile ( string path ) : Stream
PhysicalFileSystem ( string root ) : System

Méthodes protégées

Méthode Description
EnsureDirectory ( string path ) : void
MakeRelativePath ( string fullPath ) : string

Private Methods

Méthode Description
EnsureTrailingSlash ( string path ) : string
WriteAddedFileAndDirectory ( string path ) : void

Method Details

AddFile() public méthode

public AddFile ( string path, Stream stream ) : void
path string
stream Stream
Résultat void

DeleteDirectory() public méthode

public DeleteDirectory ( string path ) : void
path string
Résultat void

DeleteDirectory() public méthode

public DeleteDirectory ( string path, bool recursive ) : void
path string
recursive bool
Résultat void

DeleteFile() public méthode

public DeleteFile ( string path ) : void
path string
Résultat void

DirectoryExists() public méthode

public DirectoryExists ( string path ) : bool
path string
Résultat bool

EnsureDirectory() protected méthode

protected EnsureDirectory ( string path ) : void
path string
Résultat void

FileExists() public méthode

public FileExists ( string path ) : bool
path string
Résultat bool

GetCreated() public méthode

public GetCreated ( string path ) : DateTimeOffset
path string
Résultat DateTimeOffset

GetDirectories() public méthode

public GetDirectories ( string path ) : IEnumerable
path string
Résultat IEnumerable

GetFiles() public méthode

public GetFiles ( string path, bool recursive ) : IEnumerable
path string
recursive bool
Résultat IEnumerable

GetFiles() public méthode

public GetFiles ( string path, string filter, bool recursive ) : IEnumerable
path string
filter string
recursive bool
Résultat IEnumerable

GetFullPath() public méthode

public GetFullPath ( string path ) : string
path string
Résultat string

GetLastAccessed() public méthode

public GetLastAccessed ( string path ) : DateTimeOffset
path string
Résultat DateTimeOffset

GetLastModified() public méthode

public GetLastModified ( string path ) : DateTimeOffset
path string
Résultat DateTimeOffset

MakeRelativePath() protected méthode

protected MakeRelativePath ( string fullPath ) : string
fullPath string
Résultat string

OpenFile() public méthode

public OpenFile ( string path ) : Stream
path string
Résultat Stream

PhysicalFileSystem() public méthode

public PhysicalFileSystem ( string root ) : System
root string
Résultat System