mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
11 lines
252 B
Rust
11 lines
252 B
Rust
use yazi_shared::{strand::StrandCow, url::{UrlBuf, UrlLike}};
|
|
|
|
pub fn skip_url(url: &UrlBuf, n: usize) -> StrandCow<'_> {
|
|
let mut it = url.components();
|
|
for _ in 0..n {
|
|
if it.next().is_none() {
|
|
return StrandCow::default();
|
|
}
|
|
}
|
|
it.strand()
|
|
}
|