diff --git a/src/MD_STD.php b/src/MD_STD.php index e41f98e..736fdbe 100644 --- a/src/MD_STD.php +++ b/src/MD_STD.php @@ -704,7 +704,7 @@ final class MD_STD { */ public static function ensure_file(string $filepath, array $accepted_mimetype = []):void { - if (!\file_exists($filepath)) { + if (!\is_file($filepath)) { throw new MDFileDoesNotExist("File " . basename($filepath) . " does not exist"); }