Deleting all empty subdirectories in the directory you speci

Example tasks

Deleting all empty subdirectories in the directory you speci

Postby Alex » Thu Jun 07, 2007 10:12 am

There is a task that searches for files, checks the date and deletes files that are older than 2 weeks. It works. Now it would be great if it could delete empty folders as well. But only empty folders, not those folders where files that have not been deleted remain.
Attachments
DeleteEmptyDirs.xstk
(9.89 KiB) Downloaded 533 times
User avatar
Alex
Site Admin
 
Posts: 335
Joined: Mon May 21, 2007 4:09 pm

Return to Examples

Who is online

Users browsing this forum: No registered users and 1 guest

cron