Managing folders and files
In IBM Robotic Process Automation file systems are separated between local environment and storage providers. Storage providers are created in the IBM RPA Control Center and configured in the script.
File system is a type of variable that stores the connection between a storage provider and the script. The storage provider commands has this variable as an output parameter. They are:
- Connect to Google Drive (
googleDriveConnect
) - Connect to Microsoft OneDrive (
oneDriveConnect
) - Connect to Dropbox (
dropboxConnect
)
In IBM Robotic Process Automation, file systems are separated between local environment and storage providers. Storage providers are created in the IBM RPA Control Center and configured in the script. See Creating storage provider integrations and Setting scripts to connect to storage providers for more information.
There are unique commands for handling files in storage providers. In these commands, the parameter file system (fileSystem
) is mandatory. They are:
- Download from File System (
downloadStorage
) - Send to File System (
uploadStorage
)
There are also other commands that have the file system (fileSystem
) parameter. In these commands, this parameter is optional. You can obtain the connection variable by using one of the commands from Setting scripts to connect to storage providers.
When one of the connections is not enough to complete the parameter, the script uses the current operating system's file system.
The commands used to manipulate files are:
- Delete Directory (
deleteDir
) - Delete File (
fileDelete
) - Convert File to Base64 (
fileToBase64
) - Check If Directory Exists (
ifFolder
) - Read All Bytes (
readAllBytes
) - Copy File (
fileCopy
) - Create Directory (
createDir
) - Read All Text (
readAllText
) - If File Exists (
ifFile
) - Move File (
fileMove
) - Rename File (
fileRename
) - Count Files (
countFiles
) - Convert Base64 to File (
base64ToFile
) - Get Directories (
getDirectories
) - Get Files (
getFiles
) - Write to File (
writeToFile
) - Delete from Directory (
deleteFroDirectory
)