patch: linux set clipboard

Signed-off-by: 蔡略 <cailue@bupt.edu.cn>
This commit is contained in:
蔡略
2023-09-09 09:47:27 +08:00
parent af131cd1e5
commit e5bcfeaad5
2 changed files with 27 additions and 2 deletions

View File

@@ -555,6 +555,16 @@ impl FuseServer {
return;
}
// get files and directory path right in root of FUSE fs
pub fn list_root(&self) -> Vec<PathBuf> {
let files = self.files.read();
let mut paths = Vec::new();
for file in files.iter().filter(|f| f.parent == Some(FUSE_ROOT_ID)) {
paths.push(PathBuf::from(&file.name));
}
paths
}
/// gc filesystem
fn gc_files(&self) {
{