Folder inventory
The run walks a folder tree. One short loop handles one entry: take the next path, check what it is, add a row for a file or queue the entries of a folder. Then the same rows are written twice: one CSV table, and a report with one table per folder.
- Root folder whose files are inventoried into the CSV report
examples
How it runs
- code · 3 steps
Prepare
Starts an empty queue and an empty table, and queues the entries of the folder.
- code · 58 steps
Walk the tree
One loop per entry: a file gets a row with its name, size, type, time and checksum; a folder has its entries queued.
- code · 2 steps
Write the files
Writes the rows as one CSV table and as a report with one table per folder.
Every cell is one step of the runIn the order it happened, coloured by who did it.
codemodelpersonEvery step is code.
The result
The table it wrote, first rows| Name | Size | MIME | MD5 |
|---|---|---|---|
| README.md | 19.48 KB | text/markdown | da446788… |
| approve-and-copy.json | 2.68 KB | application/json | 8f464644… |
| approve-and-copy.md | 3.08 KB | text/markdown | 98f531f3… |
| documentation-digest-entry.tmpl | 91 B | cddb8436… | |
| documentation-digest-judged.json | 31.52 KB | application/json | 4f4c36be… |
Go deeper
- Every step of this runThe graph, the path taken, what every step read and wrote.
- The process as a fileThe graph this run executed, written as JSON.
- WalkthroughHow the walk works and how to read it back.
- All demonstrationsThe start page and the other processes.