*/
public function getFullPath($path) {
if (!$this->isValidPath($path)) {
- throw new NotPermittedException();
+ throw new NotPermittedException('Invalid path: ' . $path);
}
return $this->path . $this->normalizePath($path);
}
$this->root->emit('\OC\Files', 'postCreate', array($node));
return $node;
} else {
- throw new NotPermittedException();
+ throw new NotPermittedException('No create permission for folder ' . $this->getFullPath($path));
}
}
$this->root->emit('\OC\Files', 'postCreate', array($node));
return $node;
} else {
- throw new NotPermittedException();
+ throw new NotPermittedException('No create permission for path ' . $this->getFullPath($path));
}
}
$this->root->emit('\OC\Files', 'postDelete', array($nonExisting));
$this->exists = false;
} else {
- throw new NotPermittedException();
+ throw new NotPermittedException('No delete permission for path ' . $this->getFullPath($this->path));
}
}
$this->root->emit('\OC\Files', 'postWrite', array($targetNode));
return $targetNode;
} else {
- throw new NotPermittedException();
+ throw new NotPermittedException('No permission to copy to path ' . $targetPath);
}
}
$this->path = $targetPath;
return $targetNode;
} else {
- throw new NotPermittedException();
+ throw new NotPermittedException('No permission to move to path ' . $targetPath);
}
}