touch
Create empty files or update existing file timestamps to the current time. Use to refresh timestamps or ensure a file exists without modifying content.
Instructions
Update file access and modification timestamps to the current time, or create empty files if they do not exist. Modifies filesystem metadata (timestamps), creates files when path does not exist. Returns JSON with the touched path. Use to refresh timestamps or ensure a file exists. Not for creating directories — use 'mkdir'. Not for changing file size — use 'truncate'. See also 'mkdir', 'truncate'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report operations without changing files. | |
| parents | No | Create missing parent directories. | |
| paths | Yes | Files to touch. |