Move a file to the Trash
Moves a file to the Trash, where it can be put back.
Move path to the Trash
Details #
Moves the file to the Trash and gives its place there as the output. Nothing is deleted for good.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
into | text | The variable that receives the file's path in the Trash. | ||
path | text | The file. Optional when a file trigger fired. | ||
source | text |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Examples #
Move a file to the Trash
Do
- Move “old.dmg” to the Trash
Gotchas #
Files in locked folders can fail with a permission message.
In a dry run it changes nothing and says what it would do.