diff --git a/MD_STD.php b/MD_STD.php index 9f0cdfd..95be7ef 100644 --- a/MD_STD.php +++ b/MD_STD.php @@ -44,7 +44,7 @@ class MD_STD { public static function scandir(string $filepath):array { 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, ['.', '..']));