다음을 통해 공유


FileSystemOperationsExtensions Class

Definition

Extension methods for FileSystemOperations.

public static class FileSystemOperationsExtensions
type FileSystemOperationsExtensions = class
Public Module FileSystemOperationsExtensions
Inheritance
FileSystemOperationsExtensions

Methods

Append(IFileSystemOperations, String, String, Stream, Nullable<Int64>, Nullable<SyncFlag>, Nullable<Guid>, Nullable<Guid>)

Used for serial appends to the specified file. NOTE: The target must not contain data added by ConcurrentAppend. ConcurrentAppend and Append cannot be used interchangeably; once a target file has been modified using either of these append options, the other append option cannot be used on the target file.

AppendAsync(IFileSystemOperations, String, String, Stream, Nullable<Int64>, Nullable<SyncFlag>, Nullable<Guid>, Nullable<Guid>, CancellationToken)

Used for serial appends to the specified file. NOTE: The target must not contain data added by ConcurrentAppend. ConcurrentAppend and Append cannot be used interchangeably; once a target file has been modified using either of these append options, the other append option cannot be used on the target file.

CheckAccess(IFileSystemOperations, String, String, String)

Checks if the specified access is available at the given path.

CheckAccessAsync(IFileSystemOperations, String, String, String, CancellationToken)

Checks if the specified access is available at the given path.

Concat(IFileSystemOperations, String, String, IList<String>)

Concatenates the list of source files into the destination file, removing all source files upon success.

ConcatAsync(IFileSystemOperations, String, String, IList<String>, CancellationToken)

Concatenates the list of source files into the destination file, removing all source files upon success.

ConcurrentAppend(IFileSystemOperations, String, String, Stream, Nullable<AppendModeType>, Nullable<SyncFlag>)

Appends to the specified file, optionally first creating the file if it does not yet exist. This method supports multiple concurrent appends to the file. NOTE: The target must not contain data added by Create or normal (serial) Append. ConcurrentAppend and Append cannot be used interchangeably; once a target file has been modified using either of these append options, the other append option cannot be used on the target file. ConcurrentAppend does not guarantee order and can result in duplicated data landing in the target file.

ConcurrentAppendAsync(IFileSystemOperations, String, String, Stream, Nullable<AppendModeType>, Nullable<SyncFlag>, CancellationToken)

Appends to the specified file, optionally first creating the file if it does not yet exist. This method supports multiple concurrent appends to the file. NOTE: The target must not contain data added by Create or normal (serial) Append. ConcurrentAppend and Append cannot be used interchangeably; once a target file has been modified using either of these append options, the other append option cannot be used on the target file. ConcurrentAppend does not guarantee order and can result in duplicated data landing in the target file.

Create(IFileSystemOperations, String, String, Stream, Nullable<Boolean>, Nullable<SyncFlag>, Nullable<Guid>, Nullable<Int32>)

Creates a file with optionally specified content. NOTE: If content is provided, the resulting file cannot be modified using ConcurrentAppend.

CreateAsync(IFileSystemOperations, String, String, Stream, Nullable<Boolean>, Nullable<SyncFlag>, Nullable<Guid>, Nullable<Int32>, CancellationToken)

Creates a file with optionally specified content. NOTE: If content is provided, the resulting file cannot be modified using ConcurrentAppend.

Delete(IFileSystemOperations, String, String, Nullable<Boolean>)

Deletes the requested file or directory, optionally recursively.

DeleteAsync(IFileSystemOperations, String, String, Nullable<Boolean>, CancellationToken)

Deletes the requested file or directory, optionally recursively.

GetAclStatus(IFileSystemOperations, String, String, Nullable<Boolean>)

Gets Access Control List (ACL) entries for the specified file or directory.

GetAclStatusAsync(IFileSystemOperations, String, String, Nullable<Boolean>, CancellationToken)

Gets Access Control List (ACL) entries for the specified file or directory.

GetContentSummary(IFileSystemOperations, String, String)

Gets the file content summary object specified by the file path.

GetContentSummaryAsync(IFileSystemOperations, String, String, CancellationToken)

Gets the file content summary object specified by the file path.

GetFileStatus(IFileSystemOperations, String, String, Nullable<Boolean>)

Get the file status object specified by the file path.

GetFileStatusAsync(IFileSystemOperations, String, String, Nullable<Boolean>, CancellationToken)

Get the file status object specified by the file path.

ListFileStatus(IFileSystemOperations, String, String, Nullable<Int32>, String, String, Nullable<Boolean>)

Get the list of file status objects specified by the file path, with optional pagination parameters

ListFileStatusAsync(IFileSystemOperations, String, String, Nullable<Int32>, String, String, Nullable<Boolean>, CancellationToken)

Get the list of file status objects specified by the file path, with optional pagination parameters

Mkdirs(IFileSystemOperations, String, String, Nullable<Int32>)

Creates a directory.

MkdirsAsync(IFileSystemOperations, String, String, Nullable<Int32>, CancellationToken)

Creates a directory.

ModifyAclEntries(IFileSystemOperations, String, String, String)

Modifies existing Access Control List (ACL) entries on a file or folder.

ModifyAclEntriesAsync(IFileSystemOperations, String, String, String, CancellationToken)

Modifies existing Access Control List (ACL) entries on a file or folder.

MsConcat(IFileSystemOperations, String, String, Stream, Nullable<Boolean>)

Concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version.

MsConcatAsync(IFileSystemOperations, String, String, Stream, Nullable<Boolean>, CancellationToken)

Concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version.

Open(IFileSystemOperations, String, String, Nullable<Int64>, Nullable<Int64>, Nullable<Guid>)

Opens and reads from the specified file.

OpenAsync(IFileSystemOperations, String, String, Nullable<Int64>, Nullable<Int64>, Nullable<Guid>, CancellationToken)

Opens and reads from the specified file.

PathExists(IFileSystemOperations, String, String)

Test the existence of a file or directory object specified by the file path.

PathExistsAsync(IFileSystemOperations, String, String, CancellationToken)

Test the existence of a file or directory object specified by the file path.

RemoveAcl(IFileSystemOperations, String, String)

Removes the existing Access Control List (ACL) of the specified file or directory.

RemoveAclAsync(IFileSystemOperations, String, String, CancellationToken)

Removes the existing Access Control List (ACL) of the specified file or directory.

RemoveAclEntries(IFileSystemOperations, String, String, String)

Removes existing Access Control List (ACL) entries for a file or folder.

RemoveAclEntriesAsync(IFileSystemOperations, String, String, String, CancellationToken)

Removes existing Access Control List (ACL) entries for a file or folder.

RemoveDefaultAcl(IFileSystemOperations, String, String)

Removes the existing Default Access Control List (ACL) of the specified directory.

RemoveDefaultAclAsync(IFileSystemOperations, String, String, CancellationToken)

Removes the existing Default Access Control List (ACL) of the specified directory.

Rename(IFileSystemOperations, String, String, String)

Rename a file or directory.

RenameAsync(IFileSystemOperations, String, String, String, CancellationToken)

Rename a file or directory.

SetAcl(IFileSystemOperations, String, String, String)

Sets the Access Control List (ACL) for a file or folder.

SetAclAsync(IFileSystemOperations, String, String, String, CancellationToken)

Sets the Access Control List (ACL) for a file or folder.

SetFileExpiry(IFileSystemOperations, String, String, ExpiryOptionType, Nullable<Int64>)

Sets or removes the expiration time on the specified file. This operation can only be executed against files. Folders are not supported.

SetFileExpiryAsync(IFileSystemOperations, String, String, ExpiryOptionType, Nullable<Int64>, CancellationToken)

Sets or removes the expiration time on the specified file. This operation can only be executed against files. Folders are not supported.

SetOwner(IFileSystemOperations, String, String, String, String)

Sets the owner of a file or directory.

SetOwnerAsync(IFileSystemOperations, String, String, String, String, CancellationToken)

Sets the owner of a file or directory.

SetPermission(IFileSystemOperations, String, String, String)

Sets the permission of the file or folder.

SetPermissionAsync(IFileSystemOperations, String, String, String, CancellationToken)

Sets the permission of the file or folder.

Applies to