-
Notifications
You must be signed in to change notification settings - Fork 58
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
全新的版本,详细见下面说明 #42
Merged
Merged
全新的版本,详细见下面说明 #42
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/likun7981/hlink/C91RvsAkscuv6KP2YxheLgs35QBn |
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
移除
hlink -d
,使用全新的hlink rm
进行替代, 详情见hlink rm --help
hlink --maxFindLevel
现在无层级限制了新增
hlink rm
来进行硬链的删除,详情见hlink rm --help
hlink backup /path/to/backup_path
和hlink restore /path/to/restore_path
用于备份和恢复~/.hlink
目录hlink rm -wa /path/to/dir
解决了硬链删除时,自动删除源文件的诉求,当然你如果需要保存源文件做种,也可以使用hlink rm -w /path/to/dir
这样就只会删除相关硬链,不会删除源文件;该模式 如果路径变了就无法使用了,大家先将就用吧
!! 说明:删除命令建议大家先不使用,大家先手动删吧,目前还不完善
优化
100倍
实际测试2万+文件大概1分钟左右不兼容更新
Node.js 12.20
或者Node.js 14.14及以上
hlink -g
重新生成配置文件,或者你可以按下面步骤对源配置文件进行更改第一步:将
hlink.config.js
重命名为hlink.config.mjs
第二步:
待完成
体验
npm i -g hlink@next