}
public function rmdir($path) {
+ if (!$this->isDeletable($path)) {
+ return false;
+ }
if (trim($path, '/') === '') {
$dir = $this->opendir($path);
if(is_resource($dir)) {
}
public function rmdir($path) {
- if ($this->file_exists($path)) {
+ if ($this->file_exists($path) and $this->isDeletable($path)) {
$dh = $this->opendir($path);
while (($file = readdir($dh)) !== false) {
if ($this->is_dir($path . '/' . $file)) {
public function rmdir($path) {
$path = $this->normalizePath($path);
- if (!$this->is_dir($path)) {
+ if (!$this->is_dir($path) or !$this->isDeletable($path)) {
return false;
}
}
public function rmdir($path) {
+ if (!$this->isDeletable($path)) {
+ return false;
+ }
try {
$it = new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator($this->datadir . $path),
}
public function rmdir($path) {
+ if (!$this->isDeletable($path)) {
+ return false;
+ }
try {
$it = new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator($this->buildPath($path)),