Fix filesystem not working if creation date unavailable (e.g. in NFS mounts)
This commit is contained in:
parent
7f1a001f63
commit
19b63f5a15
1 changed files with 7 additions and 1 deletions
|
@ -184,7 +184,13 @@ impl FileStorage {
|
|||
name: version_name,
|
||||
hash: hash_str,
|
||||
artifact: Some(artifact_url),
|
||||
created: Some(entry.metadata()?.created()?.into()),
|
||||
created: match entry.metadata()?.created() {
|
||||
Ok(t) => Some(t.into()),
|
||||
Err(e) => {
|
||||
log::debug!("Failed to get created date of {}: {}", entry_path.display(), e);
|
||||
None
|
||||
}
|
||||
},
|
||||
downloads: downloads_stat,
|
||||
updates: updates_stat,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue