remove empty directories

This commit is contained in:
fred 2023-04-17 02:01:40 +02:00
parent e36c8e8f2a
commit e8eb8fa8cd
1 changed files with 2 additions and 2 deletions

View File

@ -99,8 +99,8 @@ while true; do
############# PUBLISH IPFSNODEID BALISE
# Clean Empty Directory (inode dependancy BUG ??)
#~ du -b ~/.zen/tmp/${IPFSNODEID} > /tmp/du
#~ while read branch; do [[ $branch =~ "4096" ]] && rm -Rf $(echo $branch | cut -f 2 -d ' '); done < /tmp/du
du -b ~/.zen/tmp/${IPFSNODEID} > /tmp/du
while read branch; do [[ $branch =~ "4096" ]] && rm -Rf $(echo $branch | cut -f 2 -d ' '); done < /tmp/du
# Scan local cache
ls ~/.zen/tmp/${IPFSNODEID}/