From 1a2f1cb474ef960fa6a1d9159a9527e7de2f2901 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 5 Oct 2024 21:48:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJySet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJySet.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/SrcJySet.js b/SrcJySet.js index e1d05b79..dd735341 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -2424,17 +2424,6 @@ function resource() { if(importtype=="4"){//扫描本地js文件夹 showLoading("正在扫描本地文件夹"); - function readDir(path) { - let names = []; - let file = new java.io.File(path.replace("file://", "")); - - if (!(file.exists() && file.isDirectory())) return names; - for (let it of file.listFiles()) { - names.push(String(it.getName())); - } - return names; - } - let oldfiles = getDatas("jk").filter(v=>v.type=="hipy_t3" && v.url.startsWith(datapath)).map(v=>v.url); let newfiles = readDir(input).filter(v=>v.endsWith('.js') && !v.includes('[合]') && oldfiles.filter(o=>o.includes(v)).length==0).map(v=>input+v); hideLoading();