Ejemplo n.º 1
0
 /**
  * Delete a file.
  *
  * @param string $path path to file
  *
  * @throws FileNotFoundException
  *
  * @return bool success boolean
  */
 public function delete($path)
 {
     $path = Util::normalizePath($path);
     $this->assertPresent($path);
     if ($this->adapter->delete($path) === false) {
         return false;
     }
     $this->cache->delete($path);
     return true;
 }