diff options
author | Louis Chemineau <louis@chmn.me> | 2024-11-19 13:04:47 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-12-04 15:38:35 +0100 |
commit | f6c48a45ae8fece7042b1177ffe1c0814169462f (patch) | |
tree | 6591c0cd4a47b0c46907c117808878006679d486 /apps/files_versions/lib | |
parent | c77243d568d2039b04c2e633be496d981235f665 (diff) | |
download | nextcloud-server-f6c48a45ae8fece7042b1177ffe1c0814169462f.tar.gz nextcloud-server-f6c48a45ae8fece7042b1177ffe1c0814169462f.zip |
fix: Correctly create NonExistingFolder during copy
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files_versions/lib')
-rw-r--r-- | apps/files_versions/lib/Listener/VersionStorageMoveListener.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/lib/Listener/VersionStorageMoveListener.php b/apps/files_versions/lib/Listener/VersionStorageMoveListener.php index 0f7dad29fe2..d0a0bcf4a92 100644 --- a/apps/files_versions/lib/Listener/VersionStorageMoveListener.php +++ b/apps/files_versions/lib/Listener/VersionStorageMoveListener.php @@ -11,6 +11,7 @@ namespace OCA\Files_Versions\Listener; use Exception; use OC\Files\Node\NonExistingFile; +use OC\Files\Node\NonExistingFolder; use OCA\Files_Versions\Versions\IVersionBackend; use OCA\Files_Versions\Versions\IVersionManager; use OCA\Files_Versions\Versions\IVersionsImporterBackend; @@ -130,7 +131,7 @@ class VersionStorageMoveListener implements IEventListener { } private function getNodeStorage(Node $node): IStorage { - if ($node instanceof NonExistingFile) { + if ($node instanceof NonExistingFile || $node instanceof NonExistingFolder) { return $node->getParent()->getStorage(); } else { return $node->getStorage(); |