*/ public static function scandir(string $filepath):array { if (!is_dir($filepath) || ($output = scandir($filepath)) === false) { throw new MDFileDoesNotExist("There is no file {$filename}"); } return array_values(array_diff($output, ['.', '..'])); } }