andrewhoule / silverstripe-photogallery

Simple photo gallery with albums for Silverstripe
BSD 3-Clause "New" or "Revised" License
11 stars 13 forks source link

Delete files and folder from server when deleting albums and items via the CMS #7

Open 11nf0s3c opened 9 years ago

11nf0s3c commented 9 years ago

The module should delete the relevant folder/photos from the "Files" section (and assets folder) once the album or gallery is deleted in the "Pages" section.

11nf0s3c commented 9 years ago

Thanks for updating the code. I have tested the module with the new gallery code and it works. My findings are as follows:

  1. It deletes the individual FILE from the server when you delete the individual PHOTO in the album.
  2. It deletes the FOLDER from the server when you delete the ALBUM from the gallery.
  3. It DOES NOT delete the relevant FOLDERS from the server when you delete the whole GALLERY straight way without deleting the Albums in it.