-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不同步符号链接 #3020
Comments
目前的同步是 follow symlink 的,也就是说同步后云端是保存了符号链接实际指向的真实文件。 估计只能做成同步时不跟随符号链接,而是同步符号链接本身这个文件。因为如果一旦跟随,云端存了真实文件,那么另一个设备上就只能下载到真实文件了,会出现删除已有符号链接的情况。 |
可能要分成两种情况,一种是文件符号链接,一种是文件夹符号链接; 我的应用场景是,只要涉及到符号链接,那这个路径一定会存在于syncignore中;或许可以用这个思路,一旦检测到符号链接,自动添加到syncignore文件,忽略同步? |
我也倾向于直接忽略符号链接。 |
Describe the problem
使用mklink或ln,对同步屏蔽列表中的文件夹建立软连接后,软件无法进行同步
Expected result
判断文件夹是否为软连接,如果是则视作正常文件夹进行处理
Screenshot or screen recording presentation
syncignore文件:
Win端使用


mklink /J
的效果同步的报错:
Mac端使用ln -s建立的效果


同步时的报错:
Version environment
Log File
E 2021/09/30 13:56:10 sync.go:506: read file [D:\AppData\SiYuanNote\data\assets] failed: read D:\AppData\SiYuanNote\data\assets: The handle is invalid.
E 2021/09/30 13:56:10 sync.go:338: encrypt data dir failed: read D:\AppData\SiYuanNote\data\assets: The handle is invalid.
PS
1.3.7版本中,只要屏蔽列表设置为
表现正常,图片附件显示与添加没有任何问题,除了有一次遇到会删除该软连接
#2998
The text was updated successfully, but these errors were encountered: