]> source.dussan.org Git - nextcloud-server.git/commit
Allow ext storage Local to go unavailable 39707/head
authorVincent Petry <pvince81@yahoo.fr>
Thu, 3 Aug 2023 21:09:17 +0000 (23:09 +0200)
committerSimon L <szaimen@e.mail.de>
Tue, 29 Aug 2023 09:04:31 +0000 (11:04 +0200)
commit8d1a3daa3fd7d1a4ecb7934662a76266a02ce225
tree04c7d45698d887d03f532e4788b7e6cf94574a4e
parent6f520f23046e74c07b1f7179abba1097af3e0c65
Allow ext storage Local to go unavailable

Whenever an external storage of type Local points at a non-existing
directory, process this as a StorageNotAvailable instead of returning
404.

This makes desktop clients ignore the folder instead of deleting it when
it becomes unavailable.

The code change was limited to external storages to avoid issues during
setup and with the default home storage.
Signed-off-by: Vincent Petry <pvince81@yahoo.fr>
apps/files_external/lib/Lib/Backend/Local.php
lib/private/Files/Storage/Local.php
tests/lib/Files/Storage/LocalTest.php