From fcd2bf48a60a8c126eac3a9c72babaeddffee78a Mon Sep 17 00:00:00 2001 From: Salted <44394537+xian18@users.noreply.github.com> Date: Sat, 17 Sep 2022 21:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=86FileUtils.list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/plugins/SF_Core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/plugins/SF_Core.js b/js/plugins/SF_Core.js index 5c578c8..6369282 100644 --- a/js/plugins/SF_Core.js +++ b/js/plugins/SF_Core.js @@ -575,8 +575,8 @@ var SF_Plugins = SF_Plugins || {}; return fs.statSync(fileName).size; } - FileUtils.list = function () { - + FileUtils.list = function (dirName) { + return fs.readdirSync(dirName); } FileUtils.mkdir = function (fileName) {