function addToZipFile(file as zipfile, key as int) as int
Adds a file from storage into a zip file (in the root path of the archive).
function addToZipFileWithPath(file as zipfile, key as int, path as string) as int
Adds a file from storage into a zip file at the specified path.
Since: 1.5.0
method delete(key as int)
Deletes a file from storage.
function get(key as int) as storagefile
Gets the file from storage.
function getFromZip(key as int, name as string) as storagefile
Gets all files from a ZIP archive in storage.
function getAtVersion(key as int, version as int) as storagefile
Gets the file from storage at a specific version.
Since: 1.5.0
function getBase64(key as int) as string
function getFromZip(key as int, name as string) as storagefile
Gets a file from a ZIP archive in storage.
Since: 1.5.0
function getNamesFromZip(key as int, pattern as string) as collection of string
Gets the file names from a ZIP archive in storage based on a regex pattern.
The pattern is a regex expression. For example, the pattern .* will return all the names.
Since: 1.5.0
function getTextFile(key as int) as string
Gets the text from a storage file.
Since: 1.5.0
function getTextFileAtVersion(key as int, version as int) as string
Gets the text from a storage file at a specific version.
Since: 1.5.0
function getVersionBase64(key as int, version as int) as string
function save(file as storagefile, fileName as string) as int
Saves a file into storage and returns the key.
function saveTextFile(text as string, fileName as string) as int
Saves text as a storage file and returns the key.
function saveZipFile(file as zipfile) as int
Adds a file from storage into a zip file.
function update(file as storagefile, fileName as string, key as int) as int
Updates a file in storage and returns the key.
function updateTextFile(text as string, fileName as string, key as int) as int
Updates the text in a storage file and returns the key.
Since: 1.5.0