mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #445] [CLOSED] POC: deleted files #487
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/445
Author: @tatref
Created: 10/20/2024
Status: ❌ Closed
Base:
master← Head:feat-deleted-files📝 Commits (3)
5b1c8a3WIP: deleted files3d54b07canonicalize to prevent mixed absolute/relative pathfe74d6chandle case when a parent folder is deleted📊 Changes
4 files changed (+163 additions, -9 deletions)
View changed files
📝
Cargo.toml(+1 -0)📝
src/dir_walker.rs(+154 -2)📝
src/node.rs(+7 -6)📝
src/platform.rs(+1 -1)📄 Description
Hi,
This is a quick and dirty POC for https://github.com/bootandy/dust/issues/444
Here are the changes
/proc/, but we can do this manually if you don't want to add a new dependency. The function to list files isget_deleted_filesinsert_deleted_file_in_node, maybe it could be merged withbuild_nodewalk_itInodeAndDevicepub(crate)and used it to replace a few(u64, u64)The drawbacks:
WalkDatais not used (no regex, ignore_dir...)On the bright side, there is no change (performance or inner working) if we set
handle_deleted_filesto falseLet me know what you think about it
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.