diff --git a/catcli/noder.py b/catcli/noder.py index 5d13e17..7c80e25 100644 --- a/catcli/noder.py +++ b/catcli/noder.py @@ -615,8 +615,9 @@ class Noder: item.name = fix_badchars(item.name) storage = self._get_storage(item) parents = self._get_parents(item) - key = f'{storage}/{parents}/{item.name}' - paths[parents] = item + parent_key = f'{storage.name}/{parents}' + key = f'{parent_key}/{item.name}' + paths[parent_key] = item # handle fzf mode if fmt.startswith('fzf'): diff --git a/tests-ng/find.sh b/tests-ng/find.sh index e8201a9..887e57b 100755 --- a/tests-ng/find.sh +++ b/tests-ng/find.sh @@ -40,6 +40,7 @@ ${bin} -B index -c -f --catalog="${catalog}" github2 .github #cat "${catalog}" echo "" +${bin} -B ls -r --catalog="${catalog}" ${bin} -B find --catalog="${catalog}" testing.yml cnt=$(${bin} -B find --catalog="${catalog}" testing.yml | wc -l) [ "${cnt}" != "2" ] && echo "should return 2!" && exit 1