added sstvimages directory to repo along w/ matching index.html from other image asset directories. Also added some error handling onto the new storage_helper function to check if the directory exists before reading it
这个提交包含在:
父节点
583c2ad191
当前提交
365671322b
共有 2 个文件被更改,包括 25 次插入 和 13 次删除
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
if (!function_exists('folderSize')) {
|
||||
function folderSize($dir){
|
||||
if (is_dir($dir)) {
|
||||
$count_size = 0;
|
||||
$count = 0;
|
||||
$dir_array = scandir($dir);
|
||||
|
|
@ -17,6 +18,9 @@ if (!function_exists('folderSize')) {
|
|||
}
|
||||
}
|
||||
return $count_size;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
8
assets/sstvimages/index.html
普通文件
8
assets/sstvimages/index.html
普通文件
|
|
@ -0,0 +1,8 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Directory access is forbidden.</p>
|
||||
</body>
|
||||
</html>
|
||||
正在加载…
在新工单中引用