mirror of
https://github.com/chenasraf/treelike.git
synced 2026-05-18 01:48:58 +00:00
17 lines
514 B
Bash
Executable File
17 lines
514 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
go install
|
|
cd "$(dirname $0)/src"
|
|
|
|
for i in test_*; do
|
|
echo "Creating snapshots for $i"
|
|
woext="${i%.*}"
|
|
treelike -f "$i" -D > "../snapshots/${woext}_snapshot_no_root.txt"
|
|
treelike -f "$i" -r "~" -p > "../snapshots/${woext}_snapshot_root_path.txt"
|
|
treelike -f "$i" -p > "../snapshots/${woext}_snapshot_full_path.txt"
|
|
treelike -f "$i" -s > "../snapshots/${woext}_snapshot_trailing_slash.txt"
|
|
treelike -f "$i" -c ascii > "../snapshots/${woext}_snapshot_ascii.txt"
|
|
done
|
|
|
|
echo "Done"
|