commit 481233efadfac83d87d22a73a611681667923180 Author: Joshua Ramon Enslin Date: Sun Jul 26 14:52:41 2020 +0200 Initial diff --git a/MD_STD.php b/MD_STD.php new file mode 100644 index 0000000..9f0cdfd --- /dev/null +++ b/MD_STD.php @@ -0,0 +1,54 @@ + + */ + 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, ['.', '..'])); + + } + +}