{"record":{"id":"f49b65da51388802","repo":"sxyazi/yazi","slug":"trash-is-not-supported-on-this-platform","errorCode":null,"errorMessage":"trash is not supported on this platform","messagePattern":"trash is not supported on this platform","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"yazi-fs/src/trash/unsupported/trash.rs","lineNumber":12,"sourceCode":"use std::{io, path::Path};\n\nuse super::super::{TrashEntries, TrashEntry, TrashId};\nuse crate::{cha::Cha, file::File};\n\npub struct Trash;\n\nimpl Trash {\n\tpub fn new() -> io::Result<Self> { Ok(Self) }\n\n\tpub fn list(&self, _entry: Option<&TrashEntry>) -> io::Result<Vec<TrashEntry>> {\n\t\tErr(io::Error::new(io::ErrorKind::Unsupported, \"trash is not supported on this platform\"))\n\t}\n\n\tpub fn entry(&self, _id: &TrashId) -> io::Result<TrashEntry> {\n\t\tErr(io::Error::new(io::ErrorKind::Unsupported, \"trash is not supported on this platform\"))\n\t}\n\n\tpub fn metadata(&self, _entry: &TrashEntry, _: bool) -> io::Result<Cha> {\n\t\tErr(io::Error::new(io::ErrorKind::Unsupported, \"trash is not supported on this platform\"))\n\t}\n\n\tpub(crate) fn revalidate(\n\t\t&self,\n\t\t_entry: Option<&TrashEntry>,\n\t\t_current: &File,\n\t) -> io::Result<Option<File>> {\n\t\tErr(io::Error::new(io::ErrorKind::Unsupported, \"trash is not supported on this platform\"))\n\t}\n","sourceCodeStart":1,"sourceCodeEnd":30,"githubUrl":"https://github.com/sxyazi/yazi/blob/441b332de8b8800e70784cfbfb75369ab51ed9dd/yazi-fs/src/trash/unsupported/trash.rs#L1-L30","documentation":"Error \"trash is not supported on this platform\" thrown in sxyazi/yazi.","triggerScenarios":"Thrown at yazi-fs/src/trash/unsupported/trash.rs:12 when the library encounters an invalid state.","commonSituations":"Using trash functionality on a platform where no trash backend exists, e.g. a bare Unix without freedesktop support.","solutions":["Trash is unsupported on this platform; use permanent deletion or a platform with a trash implementation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"441b332de8b8800e70784cfbfb75369ab51ed9dd","analyzedAt":"2026-08-19T05:27:26.468Z","contentChangedAt":"2026-08-19T05:27:26.468Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}