Skip to content

feat: add hardlink and refactor file overwrite#259

Merged
szbr9486 merged 2 commits intomainfrom
hardlink
Sep 11, 2025
Merged

feat: add hardlink and refactor file overwrite#259
szbr9486 merged 2 commits intomainfrom
hardlink

Conversation

@lzjqsdd
Copy link
Copy Markdown
Member

@lzjqsdd lzjqsdd commented Sep 10, 2025

No description provided.

@lzjqsdd lzjqsdd changed the title feat: add hardlink and refactor file overwrite feat: add hardlink and refactor file overwrite Sep 10, 2025
pub fn link(&self, entry: LinkEntry) -> CommonResult<()> {
let mut fs_dir = self.fs_dir.write();
let old_path = InodePath::resolve(fs_dir.root_ptr(), entry.src_path, &fs_dir.store)?;
let new_path = InodePath::resolve(fs_dir.root_ptr(), entry.dst_path, &fs_dir.store)?;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

old_path -> src_path
new_path -> des_path

@szbr9486 szbr9486 merged commit 0c52c5f into main Sep 11, 2025
3 checks passed
@lzjqsdd lzjqsdd added the enhancement New feature or request label Sep 22, 2025
@lzjqsdd lzjqsdd deleted the hardlink branch January 27, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants