Skip to content
Discussion options

You must be logged in to vote

They go under Yazi's temp dir, not ~/.cache. On macOS that's $TMPDIR/yazi-<your uid>/, with one folder per remote that starts with sftp_. The files inside are stored under hashed names, so you won't see the original filenames.

ls "$TMPDIR/yazi-$(id -u)"

In the source (v26.9.1) the folder name is built here:

yazi/yazi-fs/src/auth.rs

Lines 20 to 32 in 8dd895c

fn cache_root(&self) -> Option<PathBuf> {
match self.kind {
AuthKind::Regular | AuthKind::Search => None,
AuthKind::Mount | AuthKind::Hub | AuthKind::Scope | AuthKind::Sftp => {
Some(Xdg::temp_dir().join(format!(
"{}_{}_{}",
self.kind.into_str(),
self.scheme,
self.domain.hash_u128_str(&…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by brikk42
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants