public function destroy(ConnectionInterface $con = null, $deleteModuleData = false) { if ($deleteModuleData) { $fs = new Filesystem(); $diaporamaImagesFolder = Diaporamas::getDiaporamaImagesFolder(); $fs->exists($diaporamaImagesFolder) and $fs->remove($diaporamaImagesFolder); } return parent::destroy($con, $deleteModuleData); }
/** * @return string the path to the upload directory where files are stored, without final slash */ public function getUploadDir() { return Diaporamas::getDiaporamaImagesFolder(); }