Update storage.php

This commit is contained in:
Namhyeon Go 2018-05-26 01:25:51 +09:00 committed by GitHub
parent 28b426e304
commit 777fb92a46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}