sxyazi/yazi · error · io::Error
trash is not supported on this platform
Error message
trash is not supported on this platform
What it means
Error "trash is not supported on this platform" thrown in sxyazi/yazi.
Solutions
- Trash is unsupported on this platform; use permanent deletion or a platform with a trash implementation.
When it happens
Trigger: Thrown at yazi-fs/src/trash/unsupported/trash.rs:12 when the library encounters an invalid state.
Common situations: Using trash functionality on a platform where no trash backend exists, e.g. a bare Unix without freedesktop support.
AI-assisted analysis of sxyazi/yazi@441b332de8 (2026-08-19).
Data as JSON: /api/errors/f49b65da51388802.
Report an issue: GitHub.
Appendix: source
Thrown at yazi-fs/src/trash/unsupported/trash.rs:12
use std::{io, path::Path};
use super::super::{TrashEntries, TrashEntry, TrashId};
use crate::{cha::Cha, file::File};
pub struct Trash;
impl Trash {
pub fn new() -> io::Result<Self> { Ok(Self) }
pub fn list(&self, _entry: Option<&TrashEntry>) -> io::Result<Vec<TrashEntry>> {
Err(io::Error::new(io::ErrorKind::Unsupported, "trash is not supported on this platform"))
}
pub fn entry(&self, _id: &TrashId) -> io::Result<TrashEntry> {
Err(io::Error::new(io::ErrorKind::Unsupported, "trash is not supported on this platform"))
}
pub fn metadata(&self, _entry: &TrashEntry, _: bool) -> io::Result<Cha> {
Err(io::Error::new(io::ErrorKind::Unsupported, "trash is not supported on this platform"))
}
pub(crate) fn revalidate(
&self,
_entry: Option<&TrashEntry>,
_current: &File,
) -> io::Result<Option<File>> {
Err(io::Error::new(io::ErrorKind::Unsupported, "trash is not supported on this platform"))
}
View on GitHub (pinned to 441b332de8)