fix file system cat prefix determination

This commit is contained in:
2025-09-04 01:33:30 +02:00
parent e2085c1baa
commit 49b4162448

View File

@@ -626,6 +626,15 @@ impl PathRequest {
} }
} }
let lowest_common_prefix = if let Some(last_slash_index) = lowest_common_prefix.rfind("/")
&& last_slash_index > 1
{
lowest_common_prefix.truncate(last_slash_index);
lowest_common_prefix
} else {
lowest_common_prefix
};
Ok(Self::Multiple { Ok(Self::Multiple {
lowest_common_prefix, lowest_common_prefix,
paths: input_paths, paths: input_paths,