Changes

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..."
== 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.
Note that copying/moving large files can cause the device to lag while the operation is in progress.
</pre>
'''''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.

<br/>

==<p><b>Configuration available</b></p>==

=== Copy | Move ===

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Select a folder from where the files will be copied/moved, then select the type of files.
</pre><br/>

=== Delete ===

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Select the directory where you want to perform the deletion.
</pre><br/>

=== Create Folder ===

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Select the directory where you want to create the new folder.
Then choose a name for the folder or use magic text.
</pre>
* ''''' [https://macrodroidforum.com/wiki/index.php/Magic_text Magic Text] '''''
<br/>

==<p><b>File Type</b></p>==

=== All files ===

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Move all files (This option ignorant any folder (Files only)).
</pre><br>

=== All Media Files ===

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
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))
</pre><br>

=== All files ===

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Move all files (This option ignorant any folder (Files only)).
</pre><br>

=== Images | Audio | Videos ===

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
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.
</pre><br>

=== Specify File Pattern ===

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
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.
</pre>
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
* stands for any number of character (from 0 to any, same as '.*' in Regex).
</pre>
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
? is for 1 and only 1 mandatory character (same as '.{1}' in Regex).
</pre>
<br>

=== Folder ===

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
With this option you will move the whole folder with all files and subfolders.
</pre><br/>

==<p><b>Example</b></p>==

<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
For this example, delete the databases folder every 24h (WhatsApp local backup)
</pre><br>

<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
Triggers

Day/time Trigger
00:00 Mon - Sun
</pre><br>
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
Actions

Delete All Files
Databases
</pre><br>
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
Constraints


</pre><br>
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
Local variables

</pre><br>
editors
1,599

edits