Example #1
0
 public function deleteFile()
 {
     $path = Agana_Util_FileHandle::fixPathSeparator($this->getRealPath());
     $name = Agana_Util_FileHandle::getFileNameWithoutExtension($this->getImage()->getFile());
     $path = preg_replace('/(\\*|\\?|\\[)/', '[$1]', $path);
     $files = glob($path . $name . '*');
     foreach ($files as $file) {
         unlink($file);
     }
 }