예제 #1
0
 /**
  * Delete a file from Amazon S3 or locally.
  *
  * @access public
  * @param string $path
  * @return boolean
  */
 public function delete($path)
 {
     if ($this->s3 !== null && strpos($path, self::AS3_DOMAIN) !== false) {
         return $this->s3->deleteObject($this->s3->bucket, $this->s3->path . basename($path));
     }
     return $this->uploader->delete($path);
 }
 /**
  * Delete a file from Amazon S3 or locally.
  *
  * @access public
  * @param string $path
  * @return boolean
  */
 public function delete($path)
 {
     if ($this->s3 !== null) {
         return $this->s3->deleteObject($this->s3->bucket, $this->s3->path . basename($path));
     }
     return $this->uploader->delete($path);
 }