From e92eac7b63c403da6839f82942ca047e81670b74 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 23 Jun 2024 20:30:47 +0800 Subject: [PATCH] :art: Improve cloud disk detect --- kernel/util/runtime.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/util/runtime.go b/kernel/util/runtime.go index cec6d612d..09a15aede 100644 --- a/kernel/util/runtime.go +++ b/kernel/util/runtime.go @@ -291,7 +291,8 @@ func isKnownCloudDrivePath(workspaceAbsPath string) bool { workspaceAbsPathLower := strings.ToLower(workspaceAbsPath) return strings.Contains(workspaceAbsPathLower, "onedrive") || strings.Contains(workspaceAbsPathLower, "dropbox") || strings.Contains(workspaceAbsPathLower, "google drive") || strings.Contains(workspaceAbsPathLower, "pcloud") || - strings.Contains(workspaceAbsPathLower, "坚果云") + strings.Contains(workspaceAbsPathLower, "坚果云") || + strings.Contains(workspaceAbsPathLower, "天翼云") } func isICloudPath(workspaceAbsPath string) (ret bool) {