C# Class Praeclarum.IO.IFileSystemEx

Mostra file Open project: praeclarum/Praeclarum

Public Methods

Method Description
CopyAsync ( this src, IFile file, IFileSystem dest, string destDir ) : Task
CreateFile ( this fs, string path, string contents ) : Task
DuplicateAsync ( this fs, IFile file ) : Task
GetAvailableNameAsync ( this fs, string path ) : Task
GetUniquePath ( this fs, string basePath ) : Task
HasExtension ( this f, string ext ) : bool
MoveAsync ( this src, IFile file, IFileSystem dest, string destDir ) : System.Threading.Tasks.Task
ReadAllBytesAsync ( this file ) : Task
Sync ( this fs, System.TimeSpan timeout ) : Task

Private Methods

Method Description
CopyDirectoryAsync ( this src, IFile file, IFileSystem dest, string destDir ) : Task
CopyFileAsync ( this src, IFile file, IFileSystem dest, string destDir ) : Task
MoveDirectoryAsync ( this src, IFile file, IFileSystem dest, string destDir ) : System.Threading.Tasks.Task
MoveFileAsync ( this src, IFile file, IFileSystem dest, string destDir ) : System.Threading.Tasks.Task

Method Details

CopyAsync() public static method

public static CopyAsync ( this src, IFile file, IFileSystem dest, string destDir ) : Task
src this
file IFile
dest IFileSystem
destDir string
return Task

CreateFile() public static method

public static CreateFile ( this fs, string path, string contents ) : Task
fs this
path string
contents string
return Task

DuplicateAsync() public static method

public static DuplicateAsync ( this fs, IFile file ) : Task
fs this
file IFile
return Task

GetAvailableNameAsync() public static method

public static GetAvailableNameAsync ( this fs, string path ) : Task
fs this
path string
return Task

GetUniquePath() public static method

public static GetUniquePath ( this fs, string basePath ) : Task
fs this
basePath string
return Task

HasExtension() public static method

public static HasExtension ( this f, string ext ) : bool
f this
ext string
return bool

MoveAsync() public static method

public static MoveAsync ( this src, IFile file, IFileSystem dest, string destDir ) : System.Threading.Tasks.Task
src this
file IFile
dest IFileSystem
destDir string
return System.Threading.Tasks.Task

ReadAllBytesAsync() public static method

public static ReadAllBytesAsync ( this file ) : Task
file this
return Task

Sync() public static method

public static Sync ( this fs, System.TimeSpan timeout ) : Task
fs this
timeout System.TimeSpan
return Task