drop depricated is_readable and is_writable
This commit is contained in:
parent
cfa036eaa9
commit
1901ac8b17
|
@ -178,7 +178,7 @@ class OC_Files {
|
|||
$filename=$dir.'/'.$files;
|
||||
}
|
||||
@ob_end_clean();
|
||||
if($zip or \OC\Files\Filesystem::is_readable($filename)) {
|
||||
if($zip or \OC\Files\Filesystem::isReadable($filename)) {
|
||||
header('Content-Disposition: attachment; filename="'.basename($filename).'"');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
OC_Response::disableCaching();
|
||||
|
|
|
@ -440,20 +440,6 @@ class Filesystem {
|
|||
return self::$defaultInstance->readfile($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by isReadable() as part of CRUDS
|
||||
*/
|
||||
static public function is_readable($path) {
|
||||
return self::$defaultInstance->isReadable($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by isCreatable(), isUpdatable(), isDeletable() as part of CRUDS
|
||||
*/
|
||||
static public function is_writable($path) {
|
||||
return self::$defaultInstance->is_writable($path);
|
||||
}
|
||||
|
||||
static public function isCreatable($path) {
|
||||
return self::$defaultInstance->isCreatable($path);
|
||||
}
|
||||
|
|
|
@ -195,20 +195,6 @@ class View {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by isReadable() as part of CRUDS
|
||||
*/
|
||||
public function is_readable($path) {
|
||||
return $this->basicOperation('isReadable', $path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by isCreatable(), isUpdatable(), isDeletable() as part of CRUDS
|
||||
*/
|
||||
public function is_writable($path) {
|
||||
return $this->basicOperation('isUpdatable', $path);
|
||||
}
|
||||
|
||||
public function isCreatable($path) {
|
||||
return $this->basicOperation('isCreatable', $path);
|
||||
}
|
||||
|
|
|
@ -257,13 +257,6 @@ class OC_Filesystem {
|
|||
return \OC\Files\Filesystem::isReadable($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by isCreatable(), isUpdatable(), isDeletable() as part of CRUDS
|
||||
*/
|
||||
static public function is_writable($path) {
|
||||
return \OC\Files\Filesystem::is_writable($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated OC_Filesystem is replaced by \OC\Files\Filesystem
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue