summaryrefslogtreecommitdiffstats
path: root/lib/public/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-03-24 15:00:36 +0100
committerRobin Appelman <icewind@owncloud.com>2015-03-24 15:00:36 +0100
commitd11f01fa0f2228bb36e7b1a46cd80cec8bf1baac (patch)
tree0ec374867abef61a31f895f84082b959b9f05130 /lib/public/files
parente07a2fd8a254e60758e847356c45f41334d79aaf (diff)
downloadnextcloud-server-d11f01fa0f2228bb36e7b1a46cd80cec8bf1baac.tar.gz
nextcloud-server-d11f01fa0f2228bb36e7b1a46cd80cec8bf1baac.zip
Add `getNonExistingName()` to the node api
Diffstat (limited to 'lib/public/files')
-rw-r--r--lib/public/files/folder.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/files/folder.php b/lib/public/files/folder.php
index 9797fbc46ed..916f190ac34 100644
--- a/lib/public/files/folder.php
+++ b/lib/public/files/folder.php
@@ -146,4 +146,13 @@ interface Folder extends Node {
* @return bool
*/
public function isCreatable();
+
+ /**
+ * Add a suffix to the name in case the file exists
+ *
+ * @param string $name
+ * @return string
+ * @throws NotPermittedException
+ */
+ public function getNonExistingName($name);
}