From e51eeb1bc32e778415fe8c14f3c189928c66a722 Mon Sep 17 00:00:00 2001 From: Jack Wilkinson <31214002+jaxwilko@users.noreply.github.com> Date: Mon, 29 May 2023 18:18:13 +0100 Subject: [PATCH] Remove max-depth restriction from getAvailablePaths --- src/Halcyon/Datasource/FileDatasource.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Halcyon/Datasource/FileDatasource.php b/src/Halcyon/Datasource/FileDatasource.php index 014ecfec4..e056e9486 100644 --- a/src/Halcyon/Datasource/FileDatasource.php +++ b/src/Halcyon/Datasource/FileDatasource.php @@ -342,10 +342,6 @@ public function getAvailablePaths(): array ? new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->basePath)) : []; - if (!is_array($it)) { - $it->setMaxDepth($this->maxDepth + 1); - } - foreach ($it as $file) { if ($file->isDir()) { continue;