fix file system cat prefix determination
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user