C# Class NuGet.PhysicalFileSystem

Inheritance: IFileSystem
ファイルを表示 Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
EnsureDirectory ( string path ) : void
MakeRelativePath ( string fullPath ) : string

Private Methods

Method Description
EnsureTrailingSlash ( string path ) : string
WriteAddedFileAndDirectory ( string path ) : void

Method Details

AddFile() public method

public AddFile ( string path, Stream stream ) : void
path string
stream Stream
return void

DeleteDirectory() public method

public DeleteDirectory ( string path ) : void
path string
return void

DeleteDirectory() public method

public DeleteDirectory ( string path, bool recursive ) : void
path string
recursive bool
return void

DeleteFile() public method

public DeleteFile ( string path ) : void
path string
return void

DirectoryExists() public method

public DirectoryExists ( string path ) : bool
path string
return bool

EnsureDirectory() protected method

protected EnsureDirectory ( string path ) : void
path string
return void

FileExists() public method

public FileExists ( string path ) : bool
path string
return bool

GetCreated() public method

public GetCreated ( string path ) : DateTimeOffset
path string
return DateTimeOffset

GetDirectories() public method

public GetDirectories ( string path ) : IEnumerable
path string
return IEnumerable

GetFiles() public method

public GetFiles ( string path, bool recursive ) : IEnumerable
path string
recursive bool
return IEnumerable

GetFiles() public method

public GetFiles ( string path, string filter, bool recursive ) : IEnumerable
path string
filter string
recursive bool
return IEnumerable

GetFullPath() public method

public GetFullPath ( string path ) : string
path string
return string

GetLastAccessed() public method

public GetLastAccessed ( string path ) : DateTimeOffset
path string
return DateTimeOffset

GetLastModified() public method

public GetLastModified ( string path ) : DateTimeOffset
path string
return DateTimeOffset

MakeRelativePath() protected method

protected MakeRelativePath ( string fullPath ) : string
fullPath string
return string

OpenFile() public method

public OpenFile ( string path ) : Stream
path string
return Stream

PhysicalFileSystem() public method

public PhysicalFileSystem ( string root ) : System
root string
return System