From 571f71dc15ded944769606fc1fbb32656f9e9280 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Fri, 24 Dec 2021 11:59:30 -0100 Subject: [PATCH] ignoring default apps folder when working on custom_apps Signed-off-by: Maxence Lange --- lib/Service/PointService.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Service/PointService.php b/lib/Service/PointService.php index 5acf2166..27e8cc8f 100644 --- a/lib/Service/PointService.php +++ b/lib/Service/PointService.php @@ -475,7 +475,12 @@ private function addCustomApps(RestoringPoint $point): void { continue; } - $name = 'apps-' . str_replace('/', '', $this->get('url', $app) . '-' . $this->uuid(8)); + $customUrl = str_replace('/', '', $this->get('url', $app)); + if ($this->get('path', $app) === OC::$SERVERROOT . '/apps' && $customUrl === 'apps') { + continue; + } + + $name = 'apps-' . $customUrl . '-' . $this->uuid(8); $path = ltrim($this->get('path', $app), '/'); $point->addRestoringData(new RestoringData(RestoringData::ROOT_DISK, $path, $name)); }