Kodall
Packages

Package: storage

Methods

addToZipFile

ONE Workflow
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

ONE Workflow
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

ONE Workflow
method delete(key as int)

Deletes a file from storage.

get

ONE Workflow
function get(key as int) as storagefile

Gets the file from storage.

getAllFromZip

ONE Workflow
function getFromZip(key as int, name as string) as storagefile

Gets all files from a ZIP archive in storage.

getAtVersion

ONE Workflow
function getAtVersion(key as int, version as int) as storagefile

Gets the file from storage at a specific version.

Since: 1.5.0

getBase64

ONE Workflow
function getBase64(key as int) as string

getFromZip

ONE Workflow
function getFromZip(key as int, name as string) as storagefile

Gets a file from a ZIP archive in storage.

Since: 1.5.0

getNamesFromZip

ONE Workflow
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

ONE Workflow
function getTextFile(key as int) as string

Gets the text from a storage file.

Since: 1.5.0

getTextFileAtVersion

ONE Workflow
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

ONE Workflow
function getVersionBase64(key as int, version as int) as string

save

ONE Workflow
function save(file as storagefile, fileName as string) as int

Saves a file into storage and returns the key.

saveTextFile

ONE Workflow
function saveTextFile(text as string, fileName as string) as int

Saves text as a storage file and returns the key.

saveZipFile

ONE Workflow
function saveZipFile(file as zipfile) as int

Adds a file from storage into a zip file.

update

ONE Workflow
function update(file as storagefile, fileName as string, key as int) as int

Updates a file in storage and returns the key.

updateTextFile

ONE Workflow
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