mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
e1132eb222
commit
50cf3f7344
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue