Skip to content

Commit

Permalink
fix: channel blockage caused by fuse permissions under the root user (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi authored Oct 25, 2023
1 parent 24fd587 commit 5c3c100
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions yazi-core/src/files/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ impl Files {
while let Ok(Some(item)) = it.next_entry().await {
select! {
_ = tx.closed() => break,
Ok(meta) = item.metadata() => {
tx.send(File::from_meta(Url::from(item.path()), meta).await).ok();
result = item.metadata() => {
if let Ok(meta) = result {
tx.send(File::from_meta(Url::from(item.path()), meta).await).ok();
}
}
}
}
Expand Down

0 comments on commit 5c3c100

Please sign in to comment.