Fix wrong filename
This commit is contained in:
parent
481233efad
commit
1c68b4fa98
@ -44,7 +44,7 @@ class MD_STD {
|
|||||||
public static function scandir(string $filepath):array {
|
public static function scandir(string $filepath):array {
|
||||||
|
|
||||||
if (!is_dir($filepath) || ($output = scandir($filepath)) === false) {
|
if (!is_dir($filepath) || ($output = scandir($filepath)) === false) {
|
||||||
throw new MDFileDoesNotExist("There is no file {$filename}");
|
throw new MDFileDoesNotExist("There is no file {$filepath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
return array_values(array_diff($output, ['.', '..']));
|
return array_values(array_diff($output, ['.', '..']));
|
||||||
|
Loading…
Reference in New Issue
Block a user