From 77cd7560a5392a28f6a496fc1a2a360eda256af1 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 8 Apr 2024 14:55:49 +0200 Subject: add a seperate storage method to distinguish between 'path exists' and 'path is available' Signed-off-by: Robin Appelman --- lib/private/Files/Storage/Common.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/private/Files/Storage/Common.php') 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); + } } -- cgit v1.2.3