Twidget offers a set of commands to manipulate files in your file store. Below are the descriptions and usage of each command to help you understand how to utilize them effectively.
Retrieve a file via file path.
Inputs:
path: The file path to retrieve the file from.Outputs:
filename: The name of the file.
path: The path of the file.
parent_path: The parent directory path.
file_size: The size of the file in bytes.
is_directory: Boolean indicating if it is a directory.
is_file: Boolean indicating if it is a file.
is_root: Boolean indicating if it is the root directory.
is_multi_part_file: Boolean indicating if it is a multi-part file.
bytes: The bytes of the file.
Copy a provided file to another file path.
Inputs:
file: The file you want to copy.
copy_path: The destination path where the file should be copied.
Outputs:
filename: The name of the file.
path: The path of the file.
parent_path: The parent directory path.
file_size: The size of the file in bytes.
is_directory: Boolean indicating if it is a directory.
is_file: Boolean indicating if it is a file.
is_root: Boolean indicating if it is the root directory.
is_multi_part_file: Boolean indicating if it is a multi-part file.
bytes: The bytes of the file.
Delete the provided file.
Inputs:
file: The file you want to delete.Outputs:
Get the size of a file.
Inputs:
file: The file whose size you want to retrieve.Outputs:
Get the parent path of the provided file.
Inputs:
file: The file whose parent path you want to retrieve.Outputs:
Get the parent file/folder of the provided file.
Inputs:
file: The file whose parent file/folder you want to retrieve.Outputs:
filename: The name of the file.
path: The path of the file.
parent_path: The parent directory path.
file_size: The size of the file in bytes.
is_directory: Boolean indicating if it is a directory.
is_file: Boolean indicating if it is a file.
is_root: Boolean indicating if it is the root directory.
is_multi_part_file: Boolean indicating if it is a multi-part file.
bytes: The bytes of the file.
List files in the specified folder.
Inputs:
file: The folder whose files you want to list.Outputs:
A list of files with fields:
filename: The name of the file.
path: The path of the file.
parent_path: The parent directory path.
file_size: The size of the file in bytes.
is_directory: Boolean indicating if it is a directory.
is_file: Boolean indicating if it is a file.
is_root: Boolean indicating if it is the root directory.
is_multi_part_file: Boolean indicating if it is a multi-part file.
bytes: The bytes of the file.
Create a new folder at the specified path.
Inputs:
path: The path where you want to create the new folder.Outputs:
Rename the specified file or folder.
Inputs:
file: The file or folder you want to rename.
path: The new name for the file or folder.
Outputs:
Write data to a file in the file store.
Inputs:
path: The path where you want to write the file.
data: The data to write to the file.
Outputs:
filename: The name of the file.
path: The path of the file.
parent_path: The parent directory path.
file_size: The size of the file in bytes.
is_directory: Boolean indicating if it is a directory.
is_file: Boolean indicating if it is a file.
is_root: Boolean indicating if it is the root directory.
is_multi_part_file: Boolean indicating if it is a multi-part file.
bytes: The bytes of the file.
Append data to a file in the file store.
Inputs:
file: The file to append the data to.
data: The data to append.
Outputs:
Read the text content of the specified file.
Inputs:
file: The file whose text content you want to read.Outputs:
Check if the provided file is a folder.
Inputs:
file: The file to check.Outputs:
Check if the provided file is a file.
Inputs:
file: The file to check.Outputs:
Check if the provided file exists.
Inputs:
path: The path of the file to check.Outputs:
Check if the provided path is the root of the system.
Inputs:
file: The file or path to check.Outputs:
Text
Twidget offers a variety of commands to manipulate text in various ways. To Uppercase. Converts all characters of the provided text to uppercase. - text: The text to be converted to uppercase. - A text string with all characters in uppercase. To Lowercase. Converts all characters of the provided tex...
Local Storage
Twidget provides a set of local storage commands that enable interaction with the browser’s `localStorage` API through a no-code interface. These commands are useful for storing, retrieving, and managing key-value data persistently within the current domain context. Purpose. These commands abstract ...
Miscellaneous
Twidget provides several miscellaneous commands to facilitate various tasks. Is Null. Description: Checks whether the provided value is null or not. Inputs: - value: The value to be checked. Output: - boolean: Returns `true` if the value is null; otherwise, returns `false`. Not Null. Description: Ch...
Security
Twidget provides several built-in functions to enhance the security of your applications. Below is an overview of each security command, including its description, inputs, and outputs. Generate ID. Description: Generates a unique identifier. None - Type: Text Hash Text. Description: Hashes the provi...
Database
Twidget offers many commands to manage data in your database. Below is a list of the available commands and their functionalities: Get Data. Retrieve an entry from a table. Get Multiple Data. Retrieve multiple entries from a table. Save Data. Save an object to a database table. Save Multiple Data. S...