protected function deleteThumbnail($path)
	{
		if(file_exists($path)) {
			if(is_dir($path)) {
				if($this->config['s3']['localThumbsPath']) {
					$this->unlinkRecursive($path);
				} else {
					$key = $this->getDynamicPath($path, false);
					$this->s3->batchDelete($key);
				}
			} else {
				unlink($path);
			}
		}
	}
protected function deleteThumbnail($path)
	{
		if(file_exists($path)) {
			if(is_dir($path)) {
				if($this->config['s3']['localThumbsPath']) {
					$this->unlinkRecursive($path);
				} else {
					$key = $this->getDynamicPath($path, false);
					$this->s3->batchDelete($key);
				}
			} else {
				unlink($path);
			}
		}
	}
protected function deleteThumbnail ( $ path ) { if ( file_exists ( $ path ) ) { if ( is_dir ( $ path ) ) { if ( $ this -> config [ 's3' ] [ 'localThumbsPath' ] ) { $ this -> unlinkRecursive ( $ path ) ; } else { $ key = $ this -> getDynamicPath ( $ path , false ) ; $ this -> s3 -> batchDelete ( $ key ) ; } } else { unlink ( $ path ) ; } } }
Deletes thumbnail from S3 storage or locally
@param string $path
Deletes thumbnail from S3 storage or locally