ZipArchive.MoveAsync Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
MoveAsync(String, String, Object)
Begins asynchronous Move operation. Moves or renames an archive item (file or directory).
Declaration
public Task MoveAsync(string fromPath, string toPath, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | fromPath | Original path to a ZIP archive item to move or rename. |
String | toPath | New path to move or rename the ZIP archive item to. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The specified path is null. |
ArgumentException | The specified path is empty or contains invalid characters. -or- Attempt to move or rename the root directory of the archive. |
InvalidOperationException | Archive is not opened for writing. |
ObjectDisposedException | Archive was already disposed. |
PathTooLongException | New path is too long (longer than 65.535 characters). |
IOException | An I/O error occurred. |
ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |