Skip to content
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

同步忽略列表删除源文件问题 #2998

Closed
HowcanoeWang opened this issue Sep 28, 2021 · 0 comments
Closed

同步忽略列表删除源文件问题 #2998

HowcanoeWang opened this issue Sep 28, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@HowcanoeWang
Copy link

HowcanoeWang commented Sep 28, 2021

Describe the problem

尝试使用OneDrive代替思源同步assets文件夹下的所有静态资源
synignore中添加assets文件夹后,将assets文件夹的内容移动到OneDrive进行同步,win上使用mklink /J mac上使用ln -s建立assets的软连接,思源会在同步时删除该软连接,并且无法在设置-资源中,侦测到未使用的图片

Expected result

将软连接视为正常的文件夹,以方便使用onedrive进行静态资源的同步,减少服务器的存储压力

Screenshot or screen recording presentation

Version environment

  • Version: 1.3.7
  • Operating system: win/mac

Log File

I 2021/09/28 19:57:38 sync.go:194: set sync interval to [1m]
E 2021/09/28 19:58:44 sync.go:915: gen sync history failed: open D:\AppData\SiYuanNote\data.siyuan\history\2021-09-28-195843-sync\assets: is a directory
I 2021/09/28 19:58:45 sync.go:236: sync [cloud=1308, local=1299] downloaded in [6.19s]
I 2021/09/28 19:58:45 sync.go:240: set sync interval to [1m]
E 2021/09/28 19:58:45 aseet.go:64: read asset [D:\AppData\SiYuanNote\data\assets\f8ebd82c8bb203f546bf85de3b9ededf5d00ab90-20210927233007-q6sgsce.png] data failed: open D:\AppData\SiYuanNote\data\assets\f8ebd82c8bb203f546bf85de3b9ededf5d00ab90-20210927233007-q6sgsce.png: The system cannot find the path specified.
E 2021/09/28 19:58:45 aseet.go:64: read asset [D:\AppData\SiYuanNote\data\assets\cba965d94b9521e7be193388896a2c04fa0357a6-20210927233234-vv775ox.jpg] data failed: open D:\AppData\SiYuanNote\data\assets\cba965d94b9521e7be193388896a2c04fa0357a6-20210927233234-vv775ox.jpg: The system cannot find the path specified.
E 2021/09/28 19:58:45 aseet.go:64: read asset [D:\AppData\SiYuanNote\data\assets\94b63a7ab5e799961b025dd049a56bf9e8586141-20210927233822-5h5r68d.jpg] data failed: open D:\AppData\SiYuanNote\data\assets\94b63a7ab5e799961b025dd049a56bf9e8586141-20210927233822-5h5r68d.jpg: The system cannot find the path specified.
E 2021/09/28 19:58:45 aseet.go:64: read asset [D:\AppData\SiYuanNote\data\assets\image_1-20210927234102-t3trux7.png] data failed: open D:\AppData\SiYuanNote\data\assets\image_1-20210927234102-t3trux7.png: The system cannot find the path specified.
I 2021/09/28 19:58:45 box.go:422: rebuilt database for notebook [20210902095438-ut12mcx] in [0.04s]
I 2021/09/28 19:59:45 sync.go:132: set sync interval to [2m]
I 2021/09/28 20:01:46 sync.go:132: set sync interval to [4m]

@88250 88250 added the Bug label Sep 28, 2021
@88250 88250 self-assigned this Sep 28, 2021
@88250 88250 added this to the 1.3.8 milestone Sep 28, 2021
@88250 88250 changed the title 同步屏蔽列表对软连接的兼容问题 同步忽略列表删除源文件问题 Sep 28, 2021
88250 added a commit to siyuan-note/user-guide-zh_CN that referenced this issue Sep 28, 2021
88250 added a commit to siyuan-note/user-guide-en_US that referenced this issue Sep 28, 2021
@88250 88250 closed this as completed Sep 28, 2021
88250 added a commit to siyuan-note/appearance that referenced this issue Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants