Exemplo n.º 1
0
 function safedeletefile()
 {
     if ($this->is_dir()) {
         $this->loadfile();
         foreach ($this->filecontents as $file2delete) {
             $file2deleteobj = new bhfile($file2delete['filepath']);
             $file2deleteobj->removedb();
             unset($filetodeleteobj);
         }
         $this->removedb();
     } else {
         $this->removedb();
     }
     bh_trash($this->absfilepath);
 }
Exemplo n.º 2
0
 function safedeletefile()
 {
     bh_trash($this->absfilepath);
     $this->removedb();
 }