View Single Post
Old 08-10-2018, 07:37 PM   #83
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
Quote:
Originally Posted by Adoby View Post
Also add some code to delete empty folders.
Changes to organize-ebooks.sh to throttle the script and delete empty folders, making it easier to find folders with skipped files...

Code:
ok_file() {
	echo -e "${GREEN}OK${NC}:\\t${1}\\nTO:\\t${2}\\n"

	echo Sleeping...
	sleep 60
	echo Awake...

	rmdir -p --ignore-fail-on-non-empty "$(dirname "${1}")"
}
Adoby is offline   Reply With Quote