From 50cf3f73445da6d7703bc32a396830f11cf6823d Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 9 Dec 2025 20:52:34 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/16544 Signed-off-by: Daniel <845765@qq.com> --- kernel/util/working.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/util/working.go b/kernel/util/working.go index aa4d6e890..ddd91ae6a 100644 --- a/kernel/util/working.go +++ b/kernel/util/working.go @@ -350,6 +350,7 @@ func ReadWorkspacePaths() (ret []string, err error) { workspaceBaseDir := filepath.Dir(HomeDir) for _, d := range ret { if ContainerIOS == Container && strings.Contains(d, "/Documents/") { + // iOS 端沙箱路径会变化,需要转换为相对路径再拼接当前沙箱中的工作空间基路径 d = d[strings.Index(d, "/Documents/")+len("/Documents/"):] d = filepath.Join(workspaceBaseDir, d) }