Package: storage
Methods
addToZipFile
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).
addToZipFileWithPath
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
delete
method delete(key as int)
Deletes a file from storage.
get
function get(key as int) as storagefile
Gets the file from storage.
getAllFromZip
function getFromZip(key as int, name as string) as storagefile
Gets all files from a ZIP archive in storage.
getAtVersion
function getAtVersion(key as int, version as int) as storagefile
Gets the file from storage at a specific version.
Since: 1.5.0
getBase64
function getBase64(key as int) as string
getFromZip
function getFromZip(key as int, name as string) as storagefile
Gets a file from a ZIP archive in storage.
Since: 1.5.0
getNamesFromZip
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
getTextFile
function getTextFile(key as int) as string
Gets the text from a storage file.
Since: 1.5.0
getTextFileAtVersion
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
getVersionBase64
function getVersionBase64(key as int, version as int) as string
save
function save(file as storagefile, fileName as string) as int
Saves a file into storage and returns the key.
saveTextFile
function saveTextFile(text as string, fileName as string) as int
Saves text as a storage file and returns the key.
saveZipFile
function saveZipFile(file as zipfile) as int
Adds a file from storage into a zip file.
update
function update(file as storagefile, fileName as string, key as int) as int
Updates a file in storage and returns the key.
updateTextFile
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