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.
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... | 248.5 kB | 1 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
folder_monitor.png | 194.6 kB | 3 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
xml |
job.XML | 19.0 kB | 2 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
job.png | 283.5 kB | 1 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
step0.png | 109.7 kB | 3 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
step1.png | 121.6 kB | 3 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
step2.png | 82.6 kB | 3 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
step3.png | 97.8 kB | 3 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
step3_.png | 97.8 kB | 1 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
step4.png | 43.5 kB | 3 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
step5.png | 91.8 kB | 3 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
step6.png | 132.5 kB | 3 | 25-Oct-2018 04:31 | Halmágyi Árpád | |
png |
step7.png | 83.1 kB | 3 | 25-Oct-2018 04:31 | Halmágyi Árpád |
«
This particular version was published on 25-Oct-2018 04:31 by Halmágyi Árpád.
G’day (anonymous guest)
Log in
JSPWiki