fs_op
Run filesystem operations other than reading/writing content: copy, move, delete, mkdir, touch, chmod, symlink, hash, disk usage, and directory trees recursively.
Instructions
Filesystem operations other than reading/writing content: copy, move, delete, mkdir, touch, stat, chmod, symlink, readlink, hash (md5/sha1/sha256/sha512), disk_usage (recursive size, biggest files), tree (indented listing). Works on files and directories; recursive where it makes sense. delete refuses a non-empty directory unless recursive=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Destination path for copy, move and symlink. | |
| top | No | disk_usage: how many biggest entries to list. Default 15. | |
| mode | No | chmod: octal mode as a string, e.g. "755". mkdir: mode for new directories. | |
| path | Yes | Target path (the source, for copy/move). | |
| depth | No | tree: levels to show (default 3). disk_usage: levels to break down (default 2). | |
| force | No | copy/move: overwrite the destination if it exists. delete: ignore a missing path. | |
| action | Yes | Operation to perform. | |
| algorithm | No | hash: digest to use. Default sha256. | |
| max_bytes | No | Byte cap on returned output. | |
| recursive | No | copy/delete: include directory contents. Required to delete a non-empty directory. | |
| skip_dirs | No | tree/disk_usage: directory names not to enter. | |
| max_entries | No | tree: cap on listed entries. Default 400. | |
| show_hidden | No | tree/disk_usage: include dotfiles. |