check if a directory exists before we try to remove it
This commit is contained in:
parent
c2e83e635d
commit
64bfcbee0a
|
@ -159,7 +159,11 @@ class View {
|
|||
}
|
||||
|
||||
public function rmdir($path) {
|
||||
if ($this->is_dir($path)) {
|
||||
return $this->basicOperation('rmdir', $path, array('delete'));
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function opendir($path) {
|
||||
|
|
Loading…
Reference in New Issue