Remove useless under_base

This commit is contained in:
Alexandre
2025-10-29 08:53:50 +01:00
committed by Nachtzuster
parent 26d028f187
commit 3465305fd6
+1 -1
View File
@@ -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']), join_path($home, 'BirdSongs/Extracted/By_Date/shifted', $row['Date'], $dir, $row['File_Name']),
]; ];
foreach ($candidates as $c) { 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)); $d = realpath(dirname($c));
if ($d !== false) { if ($d !== false) {
$alt = $d . DIRECTORY_SEPARATOR . basename($c); $alt = $d . DIRECTORY_SEPARATOR . basename($c);