From 481233efadfac83d87d22a73a611681667923180 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sun, 26 Jul 2020 14:52:41 +0200 Subject: [PATCH] Initial --- MD_STD.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 MD_STD.php 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, ['.', '..'])); + + } + +}