FileSystem.DeleteOriginals

Description

This Task deletes the dropped files and folders at their original location.

FileSystem.DeleteOriginals also passes its input to its output directory as it is, so you can put another Task behind it.

Note: The re-drop functionality of DropPy’s Development Mode usually fails for Workflows that use this Task because the files are not available any more (unless you manually restore them or write files with the same name to that location).

Arguments

  • delete_to_trash (optional) is a boolean that determines how to delete the files and folders. Set to True it uses AppleScript internally to delete them to macOS Trash (default). If you override this behavior by setting it to False the Task uses Python’s os.remove function.
# delete_to_trash = True  # default
delete_to_trash = False

Requirements

Python (Non-Standard-Library Packages)

None.

External Executables

None.

API Credentials

None.

Resources