From 8b9aa43cef548ab633a25bc8b54f71cacd9f60e9 Mon Sep 17 00:00:00 2001 From: xc Date: Mon, 8 Sep 2025 19:35:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E8=AE=A1=E7=AE=97=E7=9A=84=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scagent/core/JsonRpc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scagent/core/JsonRpc.go b/scagent/core/JsonRpc.go index 2097d59..b1b91ed 100644 --- a/scagent/core/JsonRpc.go +++ b/scagent/core/JsonRpc.go @@ -124,8 +124,8 @@ func scanFileUnderPath(rootDir string, scope string, logger *zap.Logger, replay // if file.IsDir() { - fsize = "0" - hash = "" + fsize = "-" + hash = "-" } else { fsize = fmt.Sprintf("%d", fileinfo.Size()) hash = util.CalacHash(realpath)