From 3dbf01ec2d879beab38c84f20cc8986b15d3cd18 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 21 Jul 2024 18:30:57 +0300 Subject: apply fs driver for chunks as well --- lib/_ak_fs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/_ak_fs') diff --git a/lib/_ak_fs b/lib/_ak_fs index bd54720..486c7d1 100755 --- a/lib/_ak_fs +++ b/lib/_ak_fs @@ -240,7 +240,9 @@ _ak_fs_import(){ counter=0 while IFS="" read -r p || [ -n "$p" ] do - printf "mv %s %s/%s\n" "$(echo $p | awk '{ print $2 }')" "$CHKDIR" "$(echo $p | awk '{ print $1 }')" >> $TEMPORARYDIR/cmd_queue.sh +# printf "mv %s %s/%s\n" "$(echo $p | awk '{ print $2 }')" "$CHKDIR" "$(echo $p | awk '{ print $1 }')" >> $TEMPORARYDIR/cmd_queue.sh + mkdir -p $CHKDIR/$(_ak_fs_return_hash_dir $(echo $p | awk '{ print $1 }')) + cp $(echo $p | awk '{ print $2 }') $CHKDIR/$(_ak_fs_return_hash_path $(echo $p | awk '{ print $1 }')) counter=`expr "$counter" + 1` done < $TEMPORARYDIR/map @@ -342,9 +344,9 @@ _ak_fs_cat(){ else cat $expectedPath >> workspace.$nextLevel fi - elif [ -f $ftr/$p ] + elif [ -f $ftr/$(_ak_fs_return_hash_path $p) ] then - cat $ftr/$p >> output + cat $ftr/$(_ak_fs_return_hash_path $p) >> output fi fi done < workspace.$counter -- cgit v1.2.3