{"record":{"id":"09d90e186f239ee5","repo":"sxyazi/yazi","slug":"invalid-trash-mount-point","errorCode":null,"errorMessage":"invalid trash mount point","messagePattern":"invalid trash mount point","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"yazi-fs/src/trash/freedesktop/trash_info.rs","lineNumber":86,"sourceCode":"\t\t\t} else {\n\t\t\t\tSelf::mount_point(root)?.join(path)\n\t\t\t});\n\t\t}\n\t}\n\n\t// /mnt/disk/.Trash/1000           =>  /mnt/disk\n\t// /home/alice/.local/share/Trash  =>  /home/alice/.local/share\n\tfn mount_point(root: &Path) -> io::Result<&Path> {\n\t\tlet uid = Uzers::uid().to_string();\n\n\t\tif root.file_name() == Some(OsStr::new(&uid))\n\t\t\t&& let Some(parent) = root.parent()\n\t\t\t&& parent.file_name() == Some(OsStr::new(\".Trash\"))\n\t\t{\n\t\t\tparent.parent()\n\t\t} else {\n\t\t\troot.parent()\n\t\t}\n\t\t.ok_or_else(|| io::Error::new(io::ErrorKind::InvalidData, \"invalid trash mount point\"))\n\t}\n\n\tfn trim_line(line: &mut Vec<u8>) {\n\t\twhile matches!(line.last(), Some(b'\\n' | b'\\r')) {\n\t\t\tline.pop();\n\t\t}\n\t}\n}\n","sourceCodeStart":68,"sourceCodeEnd":96,"githubUrl":"https://github.com/sxyazi/yazi/blob/a541adde4e5b082719a0f21a87eb3eab071ece58/yazi-fs/src/trash/freedesktop/trash_info.rs#L68-L96","documentation":"Error \"invalid trash mount point\" thrown in sxyazi/yazi.","triggerScenarios":"Thrown at yazi-fs/src/trash/freedesktop/trash_info.rs:88 when the library encounters an invalid state.","commonSituations":"Determining the mount point for a trash location that lies outside any mounted filesystem.","solutions":["The mount point for the trash directory could not be determined; check that the filesystem is mounted and readable."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a541adde4e5b082719a0f21a87eb3eab071ece58","analyzedAt":"2026-08-19T05:27:26.468Z","contentChangedAt":"2026-08-19T05:27:26.468Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}