From 777fb92a46d7c644fa7b1adfc82eed47ccd2a52e Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sat, 26 May 2018 01:25:51 +0900 Subject: [PATCH] Update storage.php --- system/storage.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/storage.php b/system/storage.php index e666244..20f8844 100644 --- a/system/storage.php +++ b/system/storage.php @@ -173,3 +173,9 @@ function retrieve_storage_files($type, $recursive=false, $excludes=array(".", ". } return $files; } + +function check_file_extension($file, $extension) { + $found_extension = pathinfo($file, PATHINFO_EXTENSION); + return ($found_extension === $extension); +} +