Move or rename
Move or rename a file, or move every file the name rules choose or every file of a folder that matches a pattern and optional size and date limits, replacing or keeping existing targets.
Command in the File toolkit · id ooa.file/move · 11 inputs (2 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Source | File | Yes | Source file, name rules choosing several files, or a folder when pattern is given. | |
| Target | File | Yes | New path or name, or a folder when several files are moved. | |
| Overwrite | Boolean | No | false | Replace an existing target. |
| Keep both | Boolean | No | false | When the target exists and overwrite is false, use a free name such as report (2).pdf instead of stopping. |
| Pattern | String | No | Move every file in the source folder whose name matches this glob pattern; the target is then a folder. A source such as in/*.pdf works too. | |
| Include subfolders | Boolean | No | false | With a pattern, also take matching files in sub-folders, keeping their folders under the target. |
| Minimum size (bytes) | Number | No | With a pattern, only files at least this large. | |
| Maximum size (bytes) | Number | No | With a pattern, only files at most this large. | |
| Modified after | DateTime | No | With a pattern, only files last changed after this date and time (UTC, like every DateTime; Text to date converts local times). | |
| Modified before | DateTime | No | With a pattern, only files last changed before this date and time (UTC, like every DateTime; Text to date converts local times). | |
| Several files at once | Boolean | No | false | Move up to four files at the same time; faster for many files on a network share. |
Outputs
| Output | Type | What it is |
|---|---|---|
| path | File | New path of the file (the target folder when moving several files). |
| count | Number | Number of files moved. |
| files | List | New paths of the files. |