Action: File Operations

Revision as of 19:24, 11 January 2024 by JosueGd (talk | contribs) (Created page with "== About == <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> This action can be used to copy, move or delete files from the device...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

About

This action can be used to copy, move or delete files from the device.
Note that copying/moving large files can cause the device to lag while the operation is in progress.

Additional Tip: Care should be given to the fact that especially write commands will need some time before the action is concluded. It may be a good idea to place a subsequent ‘Wait’ statement before trying to read what was written.


Configuration available

Copy | Move

Select a folder from where the files will be copied/moved, then select the type of files.


Delete

Select the directory where you want to perform the deletion.


Create Folder

Select the directory where you want to create the new folder.
Then choose a name for the folder or use magic text.



File Type

All files

Move all files (This option ignorant any folder (Files only)).


All Media Files

All the files of multimedia category, some examples.

Images (GIF | JPEG | PNG)
Audio(WAV | MP3 | AAC | FLAC | OGG)
Video (AVI | MP4 | MOV | MP4)

(This option ignorant any folder (Files only))


All files

Move all files (This option ignorant any folder (Files only)).


Images | Audio | Videos

Select only one specific format.

Only Images: (GIF | JPEG | PNG)
Only Audio: (WAV | MP3 | AAC | FLAC | OGG)
Only Video: (AVI | MP4 | MOV | MP4)

There are more formats available besides those mentioned.


Specify File Pattern

Example: the *mp4 file pattern is used to identify all files that have the .mp4 extension. 

For example, if you have a file called "video.mp4" in the root folder of your device, the deletion function will delete this file if you use the *mp4 pattern.
* stands for any number of character (from 0 to any, same as '.*' in Regex).
? is for 1 and only 1 mandatory character (same as '.{1}' in Regex).


Folder

With this option you will move the whole folder with all files and subfolders.


Example

For this example, delete the databases folder every 24h (WhatsApp local backup)


Triggers

Day/time Trigger
00:00 Mon - Sun


Actions

Delete All Files
Databases


Constraints



Local variables