#!/bin/bash

## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

set -o errexit
set -o nounset
set -o pipefail
set -o errtrace
shopt -s inherit_errexit
shopt -s shift_verbose
export LC_ALL=C

## Thanks to:
## http://stackoverflow.com/a/2154277

recurse() {
 local i
 for i in "$1"/*;do
    if [ -d "${i}" ]; then
        #echo "dir: $i"
        recurse "${i}"
    elif [ -f "${i}" ]; then
        printf '%s\n' "${i}"
    fi
 done
}

## XXX: hardcoded path
recurse "${HOME}/derivative-maker"
