QBT Not removing enclosing folder when deleting files.

MAC OS X specific questions, problems.
Post Reply
johnny jackhammer
Newbie
Newbie
Posts: 12
Joined: Thu May 17, 2018 2:46 pm

QBT Not removing enclosing folder when deleting files.

Post by johnny jackhammer »

I am getting this error and it's true, the enclosing folder is not being deleted but the files inside of it are when qbt preferences are set to delete files once reaching sharing or time limits.

date and time stamp and Name of file "was removed from the transfer list but the files couldn't be deleted. Error: Directory not empty"

This has been an issue for awhile. I have been manually deleting the folders but that is time consuming.

Attached is a script for anyone who is also experiencing this issue. You can set it to run with cron if you wish. I run it manually from terminal.

Credit tedsmith3rd on macrumors

https://forums.macrumors.com/threads/ap ... rs.509548/

Code: Select all

chmod +x find-empty.py
then

Code: Select all

./find-empty.py ~/Desktop
Attachments
find-empty.py.zip
python script to locate and tag empty folders
(1.85 KiB) Downloaded 20 times
Post Reply