tori/check
2024-06-26 09:33:34 -03:00

30 lines
421 B
Bash
Executable file

#! /usr/bin/env sh
# user-configured settings
TORI_ROOT="$HOME/.config/tori"
# application logic
log() {
local level="$1" # unimplemented
local message="$2"
echo "$message"
}
traverse() {
local target="$1"
log debug "target: $target"
if [ -f "$target" ]; then
echo "file: $target"
elif [ -d "$target" ]; then
traverse $target/*
fi
}
cd "$TORI_ROOT"
for item in $TORI_ROOT/*; do
traverse "$item"
done