fix filemeta

This commit is contained in:
weisd
2025-06-06 11:51:17 +08:00
parent db355bb26b
commit 3dacde092c
+10
View File
@@ -577,6 +577,16 @@ impl FileMeta {
prev_mod_time = fi.mod_time; prev_mod_time = fi.mod_time;
} }
if versions.is_empty() {
versions.push(FileInfo {
name: path.to_string(),
volume: volume.to_string(),
deleted: true,
is_latest: true,
..Default::default()
});
}
Ok(FileInfoVersions { Ok(FileInfoVersions {
volume: volume.to_string(), volume: volume.to_string(),
name: path.to_string(), name: path.to_string(),