diff options
author | Robin Appelman <robin@icewind.nl> | 2024-04-08 14:55:49 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-04-08 14:55:49 +0200 |
commit | 77cd7560a5392a28f6a496fc1a2a360eda256af1 (patch) | |
tree | 98431cd7e3e91d053ca5ccd6f96db91d56c1a489 /lib/private/Files/Storage/Common.php | |
parent | e10853450e4f327d146c2874f175d2a9102a959a (diff) | |
download | nextcloud-server-path-available.tar.gz nextcloud-server-path-available.zip |
add a seperate storage method to distinguish between 'path exists' and 'path is available'path-available
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Storage/Common.php')
-rw-r--r-- | lib/private/Files/Storage/Common.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index c236541390f..7ffcd25ac0a 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -919,4 +919,8 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage { } } } + + public function pathAvailable(string $path): bool { + return !$this->file_exists($path); + } } |