C# Class NuGet.FileSystemExtensions

Datei anzeigen Open project: monoman/NugetCracker Class Usage Examples

Public Methods

Method Description
AddFiles ( this fileSystem, IEnumerable files ) : void
AddFiles ( this fileSystem, IEnumerable files, string rootDir ) : void
AddFiles ( this fileSystem, IEnumerable files, string rootDir, bool preserveFilePath ) : void

Add the files to the specified FileSystem

Private Methods

Method Description
AddFile ( this fileSystem, string path, Action write ) : void
AddFileWithCheck ( this fileSystem, string path, Action write ) : void
AddFileWithCheck ( this fileSystem, string path, Func streamFactory ) : void
Attempt ( System.Action action, int retries = 3, int delayBeforeRetry = 150 ) : void
DeleteDirectorySafe ( this fileSystem, string path, bool recursive ) : void
DeleteFileSafe ( this fileSystem, string path ) : void
DeleteFileSafe ( this fileSystem, string path, Func streamFactory ) : void
DeleteFiles ( this fileSystem, IEnumerable files ) : void
DeleteFiles ( this fileSystem, IEnumerable files, string rootDir ) : void
DoSafeAction ( System.Action action, ILogger logger ) : void
GetDirectories ( string path ) : IEnumerable
GetDirectoriesSafe ( this fileSystem, string path ) : IEnumerable
GetFilesSafe ( this fileSystem, string path ) : IEnumerable
GetFilesSafe ( this fileSystem, string path, string filter ) : IEnumerable
IndexOfAll ( string value, char ch ) : IEnumerable

Method Details

AddFiles() public static method

public static AddFiles ( this fileSystem, IEnumerable files ) : void
fileSystem this
files IEnumerable
return void

AddFiles() public static method

public static AddFiles ( this fileSystem, IEnumerable files, string rootDir ) : void
fileSystem this
files IEnumerable
rootDir string
return void

AddFiles() public static method

Add the files to the specified FileSystem
public static AddFiles ( this fileSystem, IEnumerable files, string rootDir, bool preserveFilePath ) : void
fileSystem this The file system.
files IEnumerable The files to add to FileSystem.
rootDir string The directory of the FileSystem to copy the files to.
preserveFilePath bool if set to true preserve full path of the copies files. Otherwise, /// all files with be copied to the .
return void