mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-19 15:01:19 +00:00
1 parent
af131cd1e5
commit
e5bcfeaad5
2 files changed
+27
-2
No files matched your search
@@ -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) {
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user