mirror of
https://github.com/tobi/disktree.git
synced 2026-11-28 08:00:53 +00:00
removal: a target under the Data volume's root is inside it
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b9ba523a92
commit
46711fc816
@@ -390,7 +390,9 @@ fn refuse(
|
||||
if home_key.is_some_and(|home| home.starts_with(&key)) {
|
||||
return Some("it contains the home directory".into());
|
||||
}
|
||||
if !key.starts_with(&root_key) {
|
||||
// By spelling too: the Data volume's root keeps its name as a key, while
|
||||
// everything under it is keyed as under `/`.
|
||||
if !key.starts_with(&root_key) && !path.starts_with(root) {
|
||||
return Some("outside the scanned root".into());
|
||||
}
|
||||
if let Some(system) = system_tree(&key, home_key) {
|
||||
|
||||
Reference in New Issue
Block a user