示例#1
0
 public function removeAvatarDirectory()
 {
     $path = $this->avatarDirectory();
     if (is_dir($path)) {
         app_rrmdir($path);
     } elseif (is_file($path)) {
         unlink($path);
     }
 }
示例#2
0
 /**
  * Delete all generated image files and folder of this images.
  */
 public function deleteDirectory()
 {
     app_rrmdir($this->directory_path);
 }