From 3465305fd6037b986466004408f0ddd61846e1a7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 29 Oct 2025 08:53:50 +0100 Subject: [PATCH] Remove useless under_base --- scripts/species_tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/species_tools.php b/scripts/species_tools.php index 7df5df0..876db43 100644 --- a/scripts/species_tools.php +++ b/scripts/species_tools.php @@ -85,7 +85,7 @@ function collect_species_targets(SQLite3 $db, string $species, string $home, $ba join_path($home, 'BirdSongs/Extracted/By_Date/shifted', $row['Date'], $dir, $row['File_Name']), ]; foreach ($candidates as $c) { - if (can_unlink($c) && under_base($c, $base)) { $files[$c] = true; $dirs[] = dirname($c); continue; } + if (can_unlink($c)) { $files[$c] = true; $dirs[] = dirname($c); continue; } $d = realpath(dirname($c)); if ($d !== false) { $alt = $d . DIRECTORY_SEPARATOR . basename($c);