projects
/
valheim_web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
789a6a7
)
Use 'modified()' instead of 'created()' to get the file time.
author
Greg Burri
<greg.burri@gmail.com>
Wed, 17 Mar 2021 21:11:30 +0000
(22:11 +0100)
committer
Greg Burri
<greg.burri@gmail.com>
Wed, 17 Mar 2021 21:11:30 +0000
(22:11 +0100)
backend/src/valheim_controller.rs
patch
|
blob
|
history
diff --git
a/backend/src/valheim_controller.rs
b/backend/src/valheim_controller.rs
index
ea502b0
..
72eb60e
100644
(file)
--- a/
backend/src/valheim_controller.rs
+++ b/
backend/src/valheim_controller.rs
@@
-110,7
+110,7
@@
fn get_last_backup_datetime(backup_path: &str) -> Option<SystemTime> {
fs::read_dir(backup_path).ok()?.filter_map(
\r
|e| {
\r
let dir = e.ok()?;
\r
- if dir.path().is_file() { Some(dir.metadata().ok()?.
creat
ed().ok()?) } else { None }
\r
+ if dir.path().is_file() { Some(dir.metadata().ok()?.
modifi
ed().ok()?) } else { None }
\r
}
\r
)
\r
.collect::<Vec<SystemTime>>();
\r