From 9f12c2e80a5dbd32af67b21b39a5a4b5214eb224 Mon Sep 17 00:00:00 2001 From: Mark <> Date: Mon, 26 Aug 2024 20:35:05 +0200 Subject: [PATCH] fix lastmodified time not being read --- musicdb-filldb/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicdb-filldb/src/main.rs b/musicdb-filldb/src/main.rs index e9982f7..0ccbe45 100755 --- a/musicdb-filldb/src/main.rs +++ b/musicdb-filldb/src/main.rs @@ -222,7 +222,7 @@ fn main() { DatabaseLocation { rel_path: path.to_path_buf(), }, - match path.metadata() { + match song_path.metadata() { Ok(v) => match v.modified() { Ok(v) => if let Ok(time) = v.duration_since(SystemTime::UNIX_EPOCH) { Some(time.as_secs())