mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 11:56:38 +00:00
fix filemeta
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user