🎨 macOS 端对工作空间放置在 iCloud 路径下做检查 https://github.com/siyuan-note/siyuan/issues/7747

This commit is contained in:
Liang Ding 2023-03-22 19:22:02 +08:00
parent 0383124697
commit dae90dd912
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -261,7 +261,7 @@ func isICloudPath(absPath string) bool {
// macOS 端对工作空间放置在 iCloud 路径下做检查 https://github.com/siyuan-note/siyuan/issues/7747
iCloudRoot := "~/Library/Mobile\\ Documents"
iCloudRoot := filepath.Join(HomeDir, "Library", "Mobile Documents")
err := filepath.Walk(iCloudRoot, func(path string, info os.FileInfo, err error) error {
if nil != err {
return err