-
Notifications
You must be signed in to change notification settings - Fork 1
File Access Commands
OpenToRead(archiveFileName as string, password as string) as integer
Opens an existing archive in read mode using the given password. The password can be an empty string. If the archive is not password-protected, the password is ignored. Raw file paths are supported.
An archive ID if the operation succeeds; otherwise 0.
- If the archive does not exist.
- If the archive cannot be opened.
OpenToWrite(archiveFileName as string, password as string) as integer
Opens an existing archive in write mode using the given password. The password can be an empty string. Raw file paths are supported. Note that the file is not writted until the archive is closed.
An archive ID if the operation succeeds; otherwise 0.
- If the archive does not exist.
- If the archive cannot be opened.
Close(archiveID as integer)
Closes an open archive of the given archive ID. If the archive is in write mode, data will be compressed and the new file will be created at this time.
- If given an invalid archive ID.
- If there is an error while creating the file when closing a write mode archive.