mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-27 08:38:58 +00:00
fix filemeta
This commit is contained in:
@@ -577,6 +577,16 @@ impl FileMeta {
|
||||
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 {
|
||||
volume: volume.to_string(),
|
||||
name: path.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user