Skip to main content

File Management

Lido provides action formulas for managing files in connected cloud storage services (Google Drive, OneDrive, etc.).


COPYFILE

Copies or moves a file from one cloud storage location to another.

Syntax:

=COPYFILE(source, destination)
=COPYFILE(source, destination, output_cell, delete_original, new_name)

Parameters:

ParameterDescriptionRequired
sourceThe URL or identifier of the source file (Google Drive, OneDrive, etc.)Yes
destinationThe target folder URL or pathYes
output_cellA cell reference where the result URL will be writtenNo
delete_originalIf true, deletes the source file after copying (effectively a move)No
new_nameA new filename for the copied fileNo

RENAMEFILE

Renames a file in cloud storage.

Syntax:

=RENAMEFILE(file, new_name)
=RENAMEFILE(file, new_name, output_cell)

Parameters:

ParameterDescriptionRequired
fileURL or identifier of the fileYes
new_nameNew filenameYes
output_cellCell reference to write the result URLNo

DELETEFILE

Deletes a file from cloud storage.

Syntax:

=DELETEFILE(file)
=DELETEFILE(file, status_cell)

Parameters:

ParameterDescriptionRequired
fileURL or identifier of the file to deleteYes
status_cellCell reference to write statusNo

CREATESTORAGEFOLDER

Creates a new folder in cloud storage.

Syntax:

=CREATESTORAGEFOLDER(folder_name, storage)
=CREATESTORAGEFOLDER(folder_name, storage, status_ref)

Parameters:

ParameterDescriptionRequired
folder_nameName for the new folderYes
storageStorage service identifierYes
status_refCell reference to write statusNo