Create a folder/file tree from a text or JSON spec (indented tree, or nested JSON), and the reverse: snapshot a real folder into a spec you can edit and recreate elsewhere.
Build folders and files under a destination from a spec: an indented tree (plain or box-drawn) or a nested JSON object. Existing files are left alone unless overwrite is on. Use --dry-run to preview.
Inputs
Name
Type
Required / default
Values and notes
spec_file
path
optional, default ""
spec_text
text
optional, default ""
format
enum
optional, default auto
autojsontree
dest
path
required
overwrite_files
bool
optional, default false
Outputs
Name
Type
Notes
dest
path
folders
int
files
int
skipped
int
plan
json
Snapshot folder
snapshot
Walk a folder and write its shape as a tree-text or JSON spec file, ready to edit or recreate elsewhere. Never modifies the folder being read.