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 25-Oct-2018 04:31 Halmágyi Árpád
xml
job.XML 17.3 kB 1 25-Oct-2018 04:31 Ben Spink
« This page (revision-3) was last changed on 25-Oct-2018 04:31 by Halmágyi Árpád
G’day (anonymous guest)
CrushFTP9 | What's New

Referenced by
CrushTask

JSPWiki