Create test for common.php filepath resolver

Quick test for the common.php directory and filepath resolver to ensure it's generating the correct paths

And small fix for incorrect firstrun.ini location (thanks test case :) )
This commit is contained in:
jaredb7
2023-05-14 18:38:30 +10:00
parent 9594f3344b
commit 7a125a6ed8
2 changed files with 194 additions and 1 deletions
+1 -1
View File
@@ -1137,7 +1137,7 @@ function getFilePath($filename)
return getDirectory('scripts') . "/exclude_species_list.txt";
//
} else if ($filename == "firstrun.ini") {
return getDirectory('home') . "/firstrun.ini";
return getDirectory('birdnet_pi') . "/firstrun.ini";
//
} else if ($filename == ".gotty") {
return getDirectory('home') . "/.gotty";