FileSystemExtensions
Namespace: TagBites.IO
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0
Provides extension methods for the file system classes.
public static class FileSystemExtensionsInheritance: object → FileSystemExtensions
Methods
Section titled “Methods”Copy(IFileResourceLink, FileLink, bool, FileSystemExceptionResolveDelegate)
Section titled “Copy(IFileResourceLink, FileLink, bool, FileSystemExceptionResolveDelegate)”Copies an existing file/file version to a new file. Overwriting a file of the same name is allowed.
public static void Copy(this IFileResourceLink source, this FileLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version to copy.destinationFileLink
The link to the destination file.overwritebool
trueif the destination file can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Copy(IFileResourceLink, FileLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “Copy(IFileResourceLink, FileLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Copies an existing file/file version to a new file.
public static void Copy(this IFileResourceLink source, this FileLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version to copy.destinationFileLink
The link to the destination file.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Copy(IFileResourceLink, FileLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “Copy(IFileResourceLink, FileLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Copies an existing file/file version to a new file.
public static void Copy(this IFileResourceLink source, this FileLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version to copy.destinationFileLink
The link to the destination file.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Copy(DirectoryLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)
Section titled “Copy(DirectoryLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)”Copies an existing directory to a new directory. Overwriting a file of the same name is allowed.
public static void Copy(this DirectoryLink source, this DirectoryLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to copy.destinationDirectoryLink
The link to the destination directory.overwritebool
trueif the destination directory can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Copy(DirectoryLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “Copy(DirectoryLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Copies an existing directory to a new directory.
public static void Copy(this DirectoryLink source, this DirectoryLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to copy.destinationDirectoryLink
The link to the destination directory.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Copy(DirectoryLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “Copy(DirectoryLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Copies an existing directory to a new directory.
public static void Copy(this DirectoryLink source, this DirectoryLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to copy.destinationDirectoryLink
The link to the destination directory.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
CopyAsync(IFileResourceLink, FileLink, bool, FileSystemExceptionResolveDelegate)
Section titled “CopyAsync(IFileResourceLink, FileLink, bool, FileSystemExceptionResolveDelegate)”Asynchronously copies an existing file/file version to a new file. Overwriting a file of the same name is allowed.
public static Task CopyAsync(this IFileResourceLink source, this FileLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version to copy.destinationFileLink
The link to the destination file.overwritebool
trueif the destination file can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
CopyAsync(IFileResourceLink, FileLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “CopyAsync(IFileResourceLink, FileLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Asynchronously copies an existing file/file version to a new file.
public static Task CopyAsync(this IFileResourceLink source, this FileLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version to copy.destinationFileLink
The link to the destination file.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
CopyAsync(IFileResourceLink, FileLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “CopyAsync(IFileResourceLink, FileLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Asynchronously copies an existing file/file version to a new file.
public static Task CopyAsync(this IFileResourceLink source, this FileLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version to copy.destinationFileLink
The link to the destination file.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
CopyAsync(DirectoryLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)
Section titled “CopyAsync(DirectoryLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)”Asynchronously copies an existing directory to a new directory. Overwriting a file of the same name is allowed.
public static Task CopyAsync(this DirectoryLink source, this DirectoryLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to copy.destinationDirectoryLink
The link to the destination directory.overwritebool
trueif the destination directory can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
CopyAsync(DirectoryLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “CopyAsync(DirectoryLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Asynchronously copies an existing directory to a new directory.
public static Task CopyAsync(this DirectoryLink source, this DirectoryLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to copy.destinationDirectoryLink
The link to the destination directory.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”CopyAsync(DirectoryLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “CopyAsync(DirectoryLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Asynchronously copies an existing directory to a new directory.
public static Task CopyAsync(this DirectoryLink source, this DirectoryLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to copy.destinationDirectoryLink
The link to the destination directory.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
CopyTo(IFileSystemLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)
Section titled “CopyTo(IFileSystemLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)”Copies an existing file/directory/file version to a new directory. Overwriting a file of the same name is allowed.
public static FileSystemStructureLink CopyTo(this IFileSystemLink source, this DirectoryLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileSystemLink
The link to the file/directory/file version to copy.destinationDirectoryLink
The link to the destination directory.overwritebool
trueif the file/directory/file version in the destination directory can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”A FileSystemStructureLink object representing the link to the moved file/directory.
CopyTo(IFileSystemLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “CopyTo(IFileSystemLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Copies an existing file/directory/file version to a new directory.
public static FileSystemStructureLink CopyTo(this IFileSystemLink source, this DirectoryLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileSystemLink
The link to the file/directory/file version to copy.destinationDirectoryLink
The link to the destination directory.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”A FileSystemStructureLink object representing the link to the moved file/directory.
CopyTo(IFileSystemLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “CopyTo(IFileSystemLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Copies an existing file/directory/file version to a new directory.
public static FileSystemStructureLink CopyTo(this IFileSystemLink source, this DirectoryLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileSystemLink
The link to the file/directory/file version to copy.destinationDirectoryLink
The link to the destination directory.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”A FileSystemStructureLink object representing the link to the moved file/directory.
CopyToAsync(IFileSystemLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)
Section titled “CopyToAsync(IFileSystemLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)”Asynchronously copies an existing file/directory/file version to a new directory. Overwriting a file of the same name is allowed.
public static Task<FileSystemStructureLink> CopyToAsync(this IFileSystemLink source, this DirectoryLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileSystemLink
The link to the file/directory/file version to copy.destinationDirectoryLink
The link to the destination directory.overwritebool
trueif the file/directory/file version in the destination directory can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a link to the moved file/directory.
CopyToAsync(IFileSystemLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “CopyToAsync(IFileSystemLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Asynchronously copies an existing file/directory/file version to a new directory.
public static Task<FileSystemStructureLink> CopyToAsync(this IFileSystemLink source, this DirectoryLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileSystemLink
The link to the file/directory/file version to copy.destinationDirectoryLink
The link to the destination directory.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a link to the moved file/directory.
CopyToAsync(IFileSystemLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “CopyToAsync(IFileSystemLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Asynchronously copies an existing file/directory/file version to a new directory.
public static Task<FileSystemStructureLink> CopyToAsync(this IFileSystemLink source, this DirectoryLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileSystemLink
The link to the file/directory/file version to copy.destinationDirectoryLink
The link to the destination directory.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a link to the moved file/directory.
Move(FileLink, FileLink, bool, FileSystemExceptionResolveDelegate)
Section titled “Move(FileLink, FileLink, bool, FileSystemExceptionResolveDelegate)”Moves a specified file to a new location, providing the option to specify a new file name. Overwriting a file of the same name is allowed.
public static void Move(this FileLink source, this FileLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileLink
The link to the file to move.destinationFileLink
The link to the destination file.overwritebool
trueif the destination file can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Move(FileLink, FileLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “Move(FileLink, FileLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Moves a specified file to a new location, providing the option to specify a new file name.
public static void Move(this FileLink source, this FileLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileLink
The link to the file to move.destinationFileLink
The link to the destination file.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Move(FileLink, FileLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “Move(FileLink, FileLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Moves a specified file to a new location, providing the option to specify a new file name
public static void Move(this FileLink source, this FileLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileLink
The link to the file to move.destinationFileLink
The link to the destination file.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Move(DirectoryLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)
Section titled “Move(DirectoryLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)”Moves a specified directory to a new location, providing the option to specify a new directory name. Overwriting a directory of the same name is allowed.
public static void Move(this DirectoryLink source, this DirectoryLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to move.destinationDirectoryLink
The link to the destination directory.overwritebool
trueif the destination directory can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Move(DirectoryLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “Move(DirectoryLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Moves a specified directory to a new location, providing the option to specify a new directory name.
public static void Move(this DirectoryLink source, this DirectoryLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to move.destinationDirectoryLink
The link to the destination directory.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Move(DirectoryLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “Move(DirectoryLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Moves a specified directory to a new location, providing the option to specify a new directory name.
public static void Move(this DirectoryLink source, this DirectoryLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to move.destinationDirectoryLink
The link to the destination directory.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
MoveAsync(FileLink, FileLink, bool, FileSystemExceptionResolveDelegate)
Section titled “MoveAsync(FileLink, FileLink, bool, FileSystemExceptionResolveDelegate)”Asynchronously moves a specified file to a new location, providing the option to specify a new file name. Overwriting a file of the same name is allowed.
public static Task MoveAsync(this FileLink source, this FileLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileLink
The link to the file to move.destinationFileLink
The link to the destination file.overwritebool
trueif the destination file can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
MoveAsync(FileLink, FileLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “MoveAsync(FileLink, FileLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Asynchronously moves a specified file to a new location, providing the option to specify a new file name.
public static Task MoveAsync(this FileLink source, this FileLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileLink
The link to the file to move.destinationFileLink
The link to the destination file.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
MoveAsync(FileLink, FileLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “MoveAsync(FileLink, FileLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Asynchronously moves a specified file to a new location, providing the option to specify a new file name.
public static Task MoveAsync(this FileLink source, this FileLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileLink
The link to the file to move.destinationFileLink
The link to the destination file.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflictsexceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
MoveAsync(DirectoryLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)
Section titled “MoveAsync(DirectoryLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)”Asynchronously moves a specified directory to a new location, providing the option to specify a new directory name. Overwriting a directory of the same name is allowed.
public static Task MoveAsync(this DirectoryLink source, this DirectoryLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to move.destinationDirectoryLink
The link to the destination directory.overwritebool
trueif the destination directory can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
MoveAsync(DirectoryLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “MoveAsync(DirectoryLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Asynchronously moves a specified directory to a new location, providing the option to specify a new directory name.
public static Task MoveAsync(this DirectoryLink source, this DirectoryLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to move.destinationDirectoryLink
The link to the destination directory.conflictResolveModeFileSystemConflictResolveModeexceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
MoveAsync(DirectoryLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “MoveAsync(DirectoryLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Asynchronously moves a specified directory to a new location, providing the option to specify a new directory name.
public static Task MoveAsync(this DirectoryLink source, this DirectoryLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to move.destinationDirectoryLink
The link to the destination directory.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflictexceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
MoveTo(FileSystemStructureLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)
Section titled “MoveTo(FileSystemStructureLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)”Moves a specified file/directory to a new location, providing the option to specify a new file name. Overwriting a file of the same name is allowed.
public static FileSystemStructureLink MoveTo(this FileSystemStructureLink source, this DirectoryLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileSystemStructureLink
The link to the file/directory to move.destinationDirectoryLink
The link to the destination directory.overwritebool
trueif the file/directory in the destination directory can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”A FileSystemStructureLink object representing the link to the moved file/directory.
MoveTo(FileSystemStructureLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “MoveTo(FileSystemStructureLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Moves a specified file/directory to a new directory, providing the option to specify a new file name.
public static FileSystemStructureLink MoveTo(this FileSystemStructureLink source, this DirectoryLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileSystemStructureLink
The link to the file/directory to move.destinationDirectoryLink
The link to the destination directory.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”A FileSystemStructureLink object representing the link to the moved file/directory.
MoveTo(FileSystemStructureLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “MoveTo(FileSystemStructureLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Moves a specified file/directory to a new directory, providing the option to specify a new file name.
public static FileSystemStructureLink MoveTo(this FileSystemStructureLink source, this DirectoryLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileSystemStructureLink
The link to the file/directory to move.destinationDirectoryLink
The link to the destination directory.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”A FileSystemStructureLink object representing the link to the moved file/directory.
MoveToAsync(FileSystemStructureLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)
Section titled “MoveToAsync(FileSystemStructureLink, DirectoryLink, bool, FileSystemExceptionResolveDelegate)”Asynchronously moves a specified file/directory to a new directory, providing the option to specify a new file name. Overwriting a file of the same name is allowed.
public static Task<FileSystemStructureLink> MoveToAsync(this FileSystemStructureLink source, this DirectoryLink destination, this bool overwrite, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileSystemStructureLink
The link to the file/directory to move.destinationDirectoryLink
The link to the destination directory.overwritebool
trueif the file/directory in the destination directory can be overwritten; otherwise,false.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a link to the moved file/directory.
MoveToAsync(FileSystemStructureLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)
Section titled “MoveToAsync(FileSystemStructureLink, DirectoryLink, FileSystemConflictResolveMode, FileSystemExceptionResolveDelegate)”Asynchronously moves a specified file/directory to a new directory, providing the option to specify a new file name.
public static Task<FileSystemStructureLink> MoveToAsync(this FileSystemStructureLink source, this DirectoryLink destination, this FileSystemConflictResolveMode conflictResolveMode, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileSystemStructureLink
The link to the file/directory to move.destinationDirectoryLink
The link to the destination directory.conflictResolveModeFileSystemConflictResolveMode
The file system conflict resolve mode.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a link to the moved file/directory.
MoveToAsync(FileSystemStructureLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)
Section titled “MoveToAsync(FileSystemStructureLink, DirectoryLink, FileSystemConflictResolveDelegate, FileSystemExceptionResolveDelegate)”Asynchronously moves a specified file/directory to a new directory, providing the option to specify a new file name.
public static Task<FileSystemStructureLink> MoveToAsync(this FileSystemStructureLink source, this DirectoryLink destination, this FileSystemConflictResolveDelegate conflictResolver, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceFileSystemStructureLink
The link to the file/directory to move.destinationDirectoryLink
The link to the destination directory.conflictResolverFileSystemConflictResolveDelegate
The delegate to resolve conflicts.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a link to the moved file/directory.
ReadAllBytes(IFileResourceLink)
Section titled “ReadAllBytes(IFileResourceLink)”Opens a file, reads all bytes in the file into a byte[], and then closes the file.
public static byte[] ReadAllBytes(this IFileResourceLink source)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version.
Returns
Section titled “Returns”A String containing all bytes in the file.
ReadAllBytesAsync(IFileResourceLink)
Section titled “ReadAllBytesAsync(IFileResourceLink)”Asynchronously opens a file, reads all bytes in the file into a byte[], and then closes the file.
public static Task<byte[]> ReadAllBytesAsync(this IFileResourceLink source)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains array of Byte containing all bytes in the file.
ReadAllText(IFileResourceLink)
Section titled “ReadAllText(IFileResourceLink)”Opens a text file, reads all the text in the file into a string, and then closes the file.
public static string ReadAllText(this IFileResourceLink source)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version.
Returns
Section titled “Returns”A String containing all text in the file.
ReadAllText(IFileResourceLink, Encoding)
Section titled “ReadAllText(IFileResourceLink, Encoding)”Opens a file, reads all text in the file into a string with the specified encoding, and then closes the file.
public static string ReadAllText(this IFileResourceLink source, this Encoding encoding)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version.encodingEncoding
The encoding applied to the contents of the file.
Returns
Section titled “Returns”A String containing all text in the file.
ReadAllTextAsync(IFileResourceLink)
Section titled “ReadAllTextAsync(IFileResourceLink)”Asynchronously opens a text file, reads all the text in the file into a string, and then closes the file.
public static Task<string> ReadAllTextAsync(this IFileResourceLink source)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains s String containing all text in the file.
ReadAllTextAsync(IFileResourceLink, Encoding)
Section titled “ReadAllTextAsync(IFileResourceLink, Encoding)”Asynchronously opens a file, reads all text in the file into a string with the specified encoding, and then closes the file.
public static Task<string> ReadAllTextAsync(this IFileResourceLink source, this Encoding encoding)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version.encodingEncoding
The encoding applied to the contents of the file.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains s String containing all text in the file.
Rename(FileSystemStructureLink, string)
Section titled “Rename(FileSystemStructureLink, string)”Renames a specified file/directory.
public static FileSystemStructureLink Rename(this FileSystemStructureLink source, this string newName)Parameters
Section titled “Parameters”sourceFileSystemStructureLink
The link to the file/directory to rename.newNamestring
A String containing a new name for .
Returns
Section titled “Returns”A FileSystemStructureLink object representing the link to the renamed file/directory.
RenameAsync(FileSystemStructureLink, string)
Section titled “RenameAsync(FileSystemStructureLink, string)”Asynchronously renames a specified file/directory.
public static Task<FileSystemStructureLink> RenameAsync(this FileSystemStructureLink source, this string newName)Parameters
Section titled “Parameters”sourceFileSystemStructureLink
The link to the file/directory to rename.newNamestring
A String containing a new name for .
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a link to the renamed file/directory.
SyncWith(DirectoryLink, DirectoryLink, FileSystemSynchronizeMode, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)
Section titled “SyncWith(DirectoryLink, DirectoryLink, FileSystemSynchronizeMode, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)”Synchronize source directory with destination directory.
public static void SyncWith(this DirectoryLink source, this DirectoryLink destination, this FileSystemSynchronizeMode mode, this FileLinkContentEqualityComparer comparer, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to synchronize.destinationDirectoryLink
The link to the destination directory.modeFileSystemSynchronizeMode
The synchronization mode.comparerFileLinkContentEqualityComparer
The delegate to compare two links to files/directories.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
SyncWith(DirectoryLink, DirectoryLink, FileSystemSynchronizeMode, IEnumerable<string>, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)
Section titled “SyncWith(DirectoryLink, DirectoryLink, FileSystemSynchronizeMode, IEnumerable<string>, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)”Synchronize source directory with destination directory.
public static void SyncWith(this DirectoryLink source, this DirectoryLink destination, this FileSystemSynchronizeMode mode, this IEnumerable<string> ignoredPaths, this FileLinkContentEqualityComparer comparer, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to synchronize.destinationDirectoryLink
The link to the destination directory.modeFileSystemSynchronizeMode
The synchronization mode.ignoredPathsIEnumerable<string>
List of ignored files/directories.comparerFileLinkContentEqualityComparer
The delegate to compare two links to files/directories.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
SyncWith(IFileResourceLink, FileLink, FileSystemSynchronizeMode, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)
Section titled “SyncWith(IFileResourceLink, FileLink, FileSystemSynchronizeMode, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)”Synchronize source file/file version with destination file.
public static void SyncWith(this IFileResourceLink source, this FileLink destination, this FileSystemSynchronizeMode mode, this FileLinkContentEqualityComparer comparer, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version to synchronize.destinationFileLink
The link to the destination file.modeFileSystemSynchronizeMode
The synchronization mode.comparerFileLinkContentEqualityComparer
The delegate to compare two links to files/directories.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
SyncWithAsync(DirectoryLink, DirectoryLink, FileSystemSynchronizeMode, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)
Section titled “SyncWithAsync(DirectoryLink, DirectoryLink, FileSystemSynchronizeMode, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)”Asynchronously synchronize source directory with destination directory.
public static Task SyncWithAsync(this DirectoryLink source, this DirectoryLink destination, this FileSystemSynchronizeMode mode, this FileLinkContentEqualityComparer comparer, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to synchronize.destinationDirectoryLink
The link to the destination directory.modeFileSystemSynchronizeMode
The synchronization mode.comparerFileLinkContentEqualityComparer
The delegate to compare two links to files/directories.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
SyncWithAsync(DirectoryLink, DirectoryLink, FileSystemSynchronizeMode, IEnumerable<string>, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)
Section titled “SyncWithAsync(DirectoryLink, DirectoryLink, FileSystemSynchronizeMode, IEnumerable<string>, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)”Asynchronously synchronize source directory with destination directory.
public static Task SyncWithAsync(this DirectoryLink source, this DirectoryLink destination, this FileSystemSynchronizeMode mode, this IEnumerable<string> ignoredPaths, this FileLinkContentEqualityComparer comparer, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceDirectoryLink
The link to the directory to synchronize.destinationDirectoryLink
The link to the destination directory.modeFileSystemSynchronizeMode
The synchronization mode.ignoredPathsIEnumerable<string>
List of ignored files/directories.comparerFileLinkContentEqualityComparer
The delegate to compare two links to files/directories.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
SyncWithAsync(IFileResourceLink, FileLink, FileSystemSynchronizeMode, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)
Section titled “SyncWithAsync(IFileResourceLink, FileLink, FileSystemSynchronizeMode, FileLinkContentEqualityComparer, FileSystemExceptionResolveDelegate)”Asynchronously synchronize source file/file version with destination file.
public static Task SyncWithAsync(this IFileResourceLink source, this FileLink destination, this FileSystemSynchronizeMode mode, this FileLinkContentEqualityComparer comparer, this FileSystemExceptionResolveDelegate exceptionResolver)Parameters
Section titled “Parameters”sourceIFileResourceLink
The link to the file/file version to synchronize.destinationFileLink
The link to the destination file.modeFileSystemSynchronizeMode
The synchronization mode.comparerFileLinkContentEqualityComparer
The delegate to compare two links to files/directories.exceptionResolverFileSystemExceptionResolveDelegate
The delegate to resolve exceptions.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
WriteAllText(FileLink, string)
Section titled “WriteAllText(FileLink, string)”Creates a new file, write the contents to the file, and then closes the file. If the target file already exists, it is overwritten.
public static void WriteAllText(this FileLink source, this string content)Parameters
Section titled “Parameters”WriteAllText(FileLink, string, Encoding)
Section titled “WriteAllText(FileLink, string, Encoding)”Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.
public static void WriteAllText(this FileLink source, this string content, this Encoding encoding)Parameters
Section titled “Parameters”sourceFileLink
The link to the file.contentstring
The string to write to the file.encodingEncoding
The encoding to apply to the string.
WriteAllTextAsync(FileLink, string)
Section titled “WriteAllTextAsync(FileLink, string)”Asynchronously creates a new file, write the contents to the file, and then closes the file. If the target file already exists, it is overwritten.
public static Task WriteAllTextAsync(this FileLink source, this string content)Parameters
Section titled “Parameters”Returns
Section titled “Returns”The task object representing the asynchronous operation.
WriteAllTextAsync(FileLink, string, Encoding)
Section titled “WriteAllTextAsync(FileLink, string, Encoding)”Asynchronously creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.
public static Task WriteAllTextAsync(this FileLink source, this string content, this Encoding encoding)Parameters
Section titled “Parameters”sourceFileLink
The link to the file.contentstring
The string to write to the file.encodingEncoding
The encoding to apply to the string.
Returns
Section titled “Returns”The task object representing the asynchronous operation.