ZipArchive.Move Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)
Move(String, String)
Moves or renames an archive item (file or directory).
Declaration
public void Move(string fromPath, string toPath)
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. |
Exceptions
Type | Condition |
---|---|
Argument |
The specified path is null. |
Argument |
The specified path is empty or contains invalid characters. -or- Attempt to move or rename the root directory of the archive. |
Invalid |
Archive is not opened for writing. |
Object |
Archive was already disposed. |
Path |
New path is too long (longer than 65.535 characters). |
IOException | An I/O error occurred. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |
Move(String, String, String)
Moves (renames) an archive item (file or directory) within the specified ZIP archive.
Declaration
public static void Move(string zipFilePath, string fromPath, string toPath)