small improvement for is_dir
This commit is contained in:
parent
bb97cbbb0c
commit
72947e46d1
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@ class OC_Filestorage_Local extends OC_Filestorage{
|
|||
return opendir($this->datadir.$path);
|
||||
}
|
||||
public function is_dir($path){
|
||||
return @is_dir($this->datadir.$path);
|
||||
if(substr($path,-1)=='/'){
|
||||
$path=substr($path,0,-1);
|
||||
}
|
||||
return is_dir($this->datadir.$path);
|
||||
}
|
||||
public function is_file($path){
|
||||
return is_file($this->datadir.$path);
|
||||
|
|
Loading…
Reference in a new issue