aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_fs
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-24 05:43:33 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-24 05:43:33 +0300
commita5fbf367e42b1d443b526acf515e5fdf71f28c91 (patch)
tree793516f849c93a82145e4387b724a028fb0e0ae4 /lib/_ak_fs
parent6e65b89679d6c99a00c455187551864d25142bfc (diff)
downloadarching-kaos-tools-a5fbf367e42b1d443b526acf515e5fdf71f28c91.tar.gz
arching-kaos-tools-a5fbf367e42b1d443b526acf515e5fdf71f28c91.tar.bz2
arching-kaos-tools-a5fbf367e42b1d443b526acf515e5fdf71f28c91.zip
ak-fs: new flag --list
Diffstat (limited to 'lib/_ak_fs')
-rwxr-xr-xlib/_ak_fs12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/_ak_fs b/lib/_ak_fs
index b26ad9c..beedf87 100755
--- a/lib/_ak_fs
+++ b/lib/_ak_fs
@@ -1,5 +1,7 @@
#!/bin/bash
+source $AK_LIBDIR/_ak_log
+
_ak_fs_return_hash_path(){
hashpath="$(echo -n "$1" |sed 's/./&\//g;s/\/$//g')"
echo -n "$hashpath"
@@ -15,7 +17,7 @@ _ak_fs_verify_input_is_hash(){
then
return 0
else
- echo "no hash?!" >&2
+ _ak_log_error "no hash?!"
exit 1
fi
}
@@ -377,3 +379,11 @@ _ak_fs_export(){
fi
_ak_fs_export "$1" > $outputFilename
}
+
+_ak_fs_list(){
+ FILEMAPSDIR="$AK_WORKDIR/fmp"
+ find $FILEMAPSDIR -type f | while read fina
+ do
+ cat $fina | tr $'\n' ' ' | awk '{ print $2 " " $3 }'
+ done
+}