diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-24 15:51:12 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-24 15:51:12 +0100 |
commit | 5a9c9b86f81806a6b67bf16385eef48296a62586 (patch) | |
tree | 3408a57d4dae82099d255fc2824348a209c29dae /lib/public | |
parent | 5e9e2b700d02259b39d443493cb8f69a8bd47304 (diff) | |
parent | d11f01fa0f2228bb36e7b1a46cd80cec8bf1baac (diff) | |
download | nextcloud-server-5a9c9b86f81806a6b67bf16385eef48296a62586.tar.gz nextcloud-server-5a9c9b86f81806a6b67bf16385eef48296a62586.zip |
Merge pull request #15153 from owncloud/uniquename-node
Add `getNonExistingName()` to the node api
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/files/folder.php | 9 |
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); } |