mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-03-10 14:13:53 +01:00
fix lastmodified time not being read
This commit is contained in:
parent
dd2cd8551d
commit
9f12c2e80a
@ -222,7 +222,7 @@ fn main() {
|
|||||||
DatabaseLocation {
|
DatabaseLocation {
|
||||||
rel_path: path.to_path_buf(),
|
rel_path: path.to_path_buf(),
|
||||||
},
|
},
|
||||||
match path.metadata() {
|
match song_path.metadata() {
|
||||||
Ok(v) => match v.modified() {
|
Ok(v) => match v.modified() {
|
||||||
Ok(v) => if let Ok(time) = v.duration_since(SystemTime::UNIX_EPOCH) {
|
Ok(v) => if let Ok(time) = v.duration_since(SystemTime::UNIX_EPOCH) {
|
||||||
Some(time.as_secs())
|
Some(time.as_secs())
|
||||||
|
Loading…
Reference in New Issue
Block a user