Delete subfolders but keep root folders.
#

This example finds all the root home folders in a particular location.  Then one by one looks inside of them to find old files to be deleted…but keeps the parent home folder.  To do this it uses a trick to export to a text file the list of root folder names, then reads that back in and uses that list to process each one, one at a time.

attachments

You can download the job configuration and slightly adjust the paths in it for your needs.

attachments(info)

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
Root_folder_contents_cleanup.p... 246.9 kB 2 29-Dec-2020 05:25 Halmágyi Árpád
xml
job.XML 17.3 kB 1 29-Dec-2020 05:25 Ben Spink
« This page (revision-3) was last changed on 29-Dec-2020 05:25 by Halmágyi Árpád
G’day (anonymous guest)
CrushFTP10 | What's New

Referenced by
CrushTask

JSPWiki