summaryrefslogtreecommitdiffstats
path: root/lib/public/Files/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Files/File.php')
-rw-r--r--lib/public/Files/File.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/public/Files/File.php b/lib/public/Files/File.php
index 29a83b4df7d..bd3b3da0df2 100644
--- a/lib/public/Files/File.php
+++ b/lib/public/Files/File.php
@@ -30,8 +30,11 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
+use OCP\Lock\LockedException;
+
/**
* Interface File
*
@@ -43,7 +46,8 @@ interface File extends Node {
* Get the content of the file as string
*
* @return string
- * @throws \OCP\Files\NotPermittedException
+ * @throws NotPermittedException
+ * @throws LockedException
* @since 6.0.0
*/
public function getContent();
@@ -52,8 +56,9 @@ interface File extends Node {
* Write to the file from string data
*
* @param string|resource $data
- * @throws \OCP\Files\NotPermittedException
- * @throws \OCP\Files\GenericFileException
+ * @throws NotPermittedException
+ * @throws GenericFileException
+ * @throws LockedException
* @since 6.0.0
*/
public function putContent($data);
@@ -71,7 +76,8 @@ interface File extends Node {
*
* @param string $mode
* @return resource
- * @throws \OCP\Files\NotPermittedException
+ * @throws NotPermittedException
+ * @throws LockedException
* @since 6.0.0
*/
public function fopen($mode);