Skip to main content

File manager

It lets you interact with your files in Flowize.

Compress file or folder​

This function allows you to compress a file or folder into a ZIP file. After compression, the ZIP file is stored in the File manager and its details are available in the response.

Input Parameters​

ParameterUsageMandatory
File or folder pathThe path of the file or folder you want to compress.Yes
Name of the Compressed fileThe name to use for the compressed file.No
Overwrite file?Choose whether the original file should be overwritten.Yes

Response parameters​

ParameterUsage
statusThe status of the operation.
messageA message with details about the operation.
file_pathThe path of the compressed file.
file_nameThe name of the compressed file.
file_sizeThe size of the compressed file.

Delete a file​

This Tool is used for Deleting files from your file manager.

Input Parameters​

ParameterUsageMandatory
File name and pathWrite the path of your file and file nameYes

Response parameters​

ParameterUsage
statusThe status of the operation.
messageA message with details about the operation.
file_pathThe path of the deleted file.

Delete a folder​

This Tool is used for Deleting folders from your file manager.

Input Parameters​

ParameterUsageMandatory
Folder name and pathWrite the path of your folder and name of the folderYes

Response parameters​

ParameterUsage
statusThe status of the operation.
messageA message with details about the operation.
folder_pathThe path of the deleted folder.

Does the file exist?​

This Tool is used for check if the file exists in your file manager.

Input Parameters​

ParameterUsageMandatory
Folder name and pathThe path of your folder and name of the fileYes

Response parameters​

ParameterUsage
existsIndicates whether the file exists.
num_linesThe number of lines in the file.
messageA message with details about the operation.
file_pathThe path of the file.

Download file from URL​

This Tool is used for download files in your file manager.

Input Parameters​

ParameterUsageMandatory
URLWrite the link of your file (Must end with one of the allowed extensions).Yes
Folder nameWrite the path of your folder where you want to save the fileYes
Name of the fileWrite the name of the file and extensionYes

Extra Parameters​

You can add custom API headers when required by the source URL. For example, you can use this section to provide an API key required to access the file.

Response parameters​

The response contains information about the result of the operation, including any errors, a message, the file size, and the file path.

Generate public URL for a file​

This Tool is used for generate a URL that allows access to the file.

Input Parameters​

ParameterUsageMandatory
File Name and pathWrite the path of your folder and name of the fileYes
Domain Base URlYour custom domain urlYes

Response parameters​

ParameterUsage
statusThe status of the operation.
messageA message with details about the operation.
file_pathThe path of the file.

Read a file​

This Tool is used for reading file in your file manager.

Input Parameters​

ParameterUsageMandatory
File Name and pathWrite the path of your folder and name of the fileYes
Read only one lineread the file line by lineYes
line numberHow many lines you want to readYes

Response parameters​

ParameterUsage
file_contentThe content read from the file.
messageA message with details about the operation.
file_pathThe path of the file.
file_sizeThe size of the file.
num_linesThe total number of lines in the file.
current_lineThe current line that was read.
next_lineThe next available line.
line_sizeThe size of the returned line.

Write a file​

This Tool is used for writing file in your file manager.

Input Parameters​

ParameterUsageMandatory
File Name and pathWrite the path of your folder and name of the fileYes
ContentWrite your content here that you want to writeYes
Writing OptionOverwrite will wipe your current content and replace with new one and append will add the content at the endYes
Create FileChoose if you want to create a fileYes
Decode contentWhen Content is a B64 encoding file, it's necessary choose decode in Base64 to get the file directly in the file manager section.Yes

CHARACTER ENCODING AND LINE TERMINATOR​

ParameterUsageMandatory
Change Character encodingSelect the appropriate character encoding when the content is not encoded in UTF-8.Yes
Line TerminatorSelect the line terminator to use when appending content on a new line.Yes

Response parameters​

ParameterUsage
statusThe status of the operation.
messageA message with details about the operation.
file_pathThe path of the file.
file_sizeThe size of the file.

Was this article helpful?