mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: older versions of lsar didn't have jss parameter, closes #202
This commit is contained in:
parent
fa5de51ce8
commit
6d310e237a
1 changed files with 1 additions and 3 deletions
4
core/src/external/lsar.rs
vendored
4
core/src/external/lsar.rs
vendored
|
|
@ -32,9 +32,7 @@ pub struct LsarFile {
|
||||||
|
|
||||||
#[allow(clippy::manual_map)]
|
#[allow(clippy::manual_map)]
|
||||||
pub async fn lsar(path: &Path, skip: usize, limit: usize) -> Result<Vec<LsarFile>, PeekError> {
|
pub async fn lsar(path: &Path, skip: usize, limit: usize) -> Result<Vec<LsarFile>, PeekError> {
|
||||||
let output =
|
let output = Command::new("lsar").arg("-j").arg(path).kill_on_drop(true).output().await?;
|
||||||
Command::new("lsar").args(["-j", "-jss"]).arg(path).kill_on_drop(true).output().await?;
|
|
||||||
|
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
return Err(String::from_utf8_lossy(&output.stderr).to_string().into());
|
return Err(String::from_utf8_lossy(&output.stderr).to_string().into());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue