Skip to content

Ignore hidden files when generating asset history #11253

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

Closed
88250 opened this issue May 5, 2024 · 2 comments
Closed

Ignore hidden files when generating asset history #11253

88250 opened this issue May 5, 2024 · 2 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented May 5, 2024

生成资源文件历史时忽略隐藏文件

https://ld246.com/article/1714777145316

@88250 88250 self-assigned this May 5, 2024
@88250 88250 added this to the 3.0.13 milestone May 5, 2024
@88250 88250 changed the title Ignore files occupied by other programs when generating asset file history Ignore hidden files when generating asset history May 5, 2024
88250 added a commit that referenced this issue May 5, 2024

Verified

This commit was signed with the committer’s verified signature.
@88250 88250 closed this as completed May 5, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Jun 20, 2024

我思源也崩了

W 2024/06/20 19:16:26 net.go:136: check url [http://s3.cn-south-1.qiniucs.com/] is online failed: Get "http://s3.cn-south-1.qiniucs.com/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
I 2024/06/20 19:16:26 repository.go:1279: syncing data repo [device=6d7296ad-0c9a-42bb-bd58-cb9bf17a83c4, kernel=s3tkp6k, provider=2, mode=a/false]
I 2024/06/20 19:16:26 ref.go:50: got local latest [device=6d7296ad-0c9a-42bb-bd58-cb9bf17a83c4/windows, id=be9914d8a72878649aa506fb063153283989e9f5, files=10504, size=2.79 GB, created=2024-06-20 18:18:33]
I 2024/06/20 19:16:28 repo.go:595: walk data [files=10504] cost [1.6146296s]
I 2024/06/20 19:16:28 ref.go:50: got local latest [device=6d7296ad-0c9a-42bb-bd58-cb9bf17a83c4/windows, id=be9914d8a72878649aa506fb063153283989e9f5, files=10504, size=2.79 GB, created=2024-06-20 18:18:33]
I 2024/06/20 19:16:29 s3.go:94: uploaded object [repo/lock-sync]
I 2024/06/20 19:16:29 ref.go:50: got local latest [device=6d7296ad-0c9a-42bb-bd58-cb9bf17a83c4/windows, id=be9914d8a72878649aa506fb063153283989e9f5, files=10504, size=2.79 GB, created=2024-06-20 18:18:33]
I 2024/06/20 19:16:29 s3.go:121: downloaded object [repo/refs/latest]
I 2024/06/20 19:16:30 s3.go:121: downloaded object [repo/indexes/be9914d8a72878649aa506fb063153283989e9f5]
I 2024/06/20 19:16:30 sync.go:1581: got cloud latest [device=6d7296ad-0c9a-42bb-bd58-cb9bf17a83c4/windows, id=be9914d8a72878649aa506fb063153283989e9f5, files=10504, size=2.79 GB, created=2024-06-20 18:18:33]
I 2024/06/20 19:16:30 s3.go:138: removed object [repo/lock-sync]
I 2024/06/20 19:16:30 repository.go:1347: synced data repo [device=6d7296ad-0c9a-42bb-bd58-cb9bf17a83c4, kernel=s3tkp6k, provider=2, mode=a/false, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=452 kB] in [3.25s], merge result [conflicts=0, upserts=0, removes=0]

F 2024/06/20 19:17:24 filelock.go:87: copy [src=F:\SiYuan\data\assets\~$「Day2」综合表单-20240619094132-4da1fxl.xlsx, dest=F:\SiYuan\history\2024-06-20-191724-clean\assets\~$「Day2」综合表单-20240619094132-4da1fxl.xlsx] failed: open F:\SiYuan\data\assets\~$「Day2」综合表单-20240619094132-4da1fxl.xlsx: The process cannot access the file because it is being used by another process.
    github.com/siyuan-note/siyuan/kernel/model.RemoveUnusedAssets()
    	D:/a/siyuan/siyuan/go/src/github.com/siyuan-note/siyuan/kernel/model/assets.go:691 +0x305
    github.com/siyuan-note/siyuan/kernel/api.removeUnusedAssets(0xc007e43400)
    	D:/a/siyuan/siyuan/go/src/github.com/siyuan-note/siyuan/kernel/api/asset.go:265 +0x94

@88250
Copy link
Member Author

88250 commented Jun 20, 2024

感谢反馈,稍后改进。

88250 added a commit that referenced this issue Jun 20, 2024

Verified

This commit was signed with the committer’s verified signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants