Actions
Refresh Drive List
Refresh drive list (if user has plugged/unplugged a device, this will update with the latest drive values)
Set Current Directory
Sets the current directory of the Filesystem element. Use this to go to a known directory path (ex. C:\Users\userName\Desktop)
Go To Next Directory
Takes current directory output and combines it with a name to navigate to the next directory (ex. C:\Users + userName = C:\Users\userName)
Go Back A Directory
Removes last directory from current directory (Ex. C:\Users\userName - userName = C:\Users)
Trim Path By Segements
Trims the current directory path by keeping only the first N segments.
For example, an index value of 2 on the directory of "C:/Users/Example/Desktop" would trim the directory to "C:/Users" (2 segments)
Refresh Current Directory
Checks the current directory for updates.
Create Directory
Creates a new folder in the given directory.
Set File Uploader Value
Sets the value of a file uploader. Specify file paths & element ID
Limited to whitelisted directories, without custom code signing certificates.
Request Download
Accepts a file URL. Will prompt the user to choose where they want to save the download. Will fire the 'Download Started' event if started or the 'Download Canceled' if the dialog is closed.
Pause Download
Pause a download by Download ID.
Some paused downloads may not be able to be resumed, depending on the web server. In this case, the download will restart.
Resume Download
Resume a download by Download ID.
Some paused downloads may not be able to be resumed, depending on the web server. In this case, the download will restart.
Cancel Download
Cancel a download by Download ID.
Read File
Reads the contents of a file. This will populate the "File Contents" custom state. It will also fire the "File Read" event.
Limited to whitelisted directories, without custom code signing certificates.
This reads the full content of the file in memory before returning the data.
This means that big files are going to have a major impact on your memory consumption and can lead to crashes/hanging.
Use this in tandem with the "File System - Get File Stats" action to make sure the file is small in size.
Create File
Creates an empty file for you to write data to at a given path.
Limited to whitelisted directories, without custom code signing certificates.
Write File
Writes to a file. Note, this will overwrite a file's contents.
Limited to whitelisted directories, without custom code signing certificates.
Rename File
Renames a file.
Limited to whitelisted directories, without custom code signing certificates.
Get File Stats
Returns data such as created date, file size, etc. This will populate the "File Details" custom state. It will also fire the "File Stats Retrieved" event.
Limited to whitelisted directories, without custom code signing certificates.
Trash File
Attempts to move the given file to the recycle bin.
Limited to whitelisted directories, without custom code signing certificates.
Show In Folder
Opens the native file explorer, and shows the given path.
Generate Thumbnail
Returns a preview thumbnail for a media file such as an image or video. Outputs to the "Thumbnail" state as a base64 encoded string.
Limited to whitelisted directories, without custom code signing certificates.