From ecff0496cb0580866baf453b6fa9e1b7d91782e7 Mon Sep 17 00:00:00 2001 From: Cheney Date: Thu, 13 Mar 2025 15:31:16 +0800 Subject: [PATCH] =?UTF-8?q?remote=20=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kit/src/remote/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kit/src/remote/index.js b/kit/src/remote/index.js index 283fd7f..4a36c63 100644 --- a/kit/src/remote/index.js +++ b/kit/src/remote/index.js @@ -61,21 +61,24 @@ module.exports = class Remote { // Get directory contents const directoryItems = await this.client.getDirectoryContents("/"); + $logger.info("directoryItems", directoryItems) // 是否包含 index.json ? // 不包含尝试创建 // 包含了尝试下载 const indexJsonFile = this.getIndexJson( directoryItems ); + $logger.info("indexJsonFile", indexJsonFile) if ( indexJsonFile ) { // 包含了尝试下载 // 下载有缓存 this.download(indexJsonFile) + $logger.info("download index") } else { // 不包含尝试创建 await this.affireRemoteStore() + $logger.info("affireRemoteStore") } - return true }catch ( e ) { $logger.error("remote check 过程中出错", e)