Update the times so the latest file is the uncompressed file
This commit is contained in:
parent
e4f93dc382
commit
5b7d3cf08e
7
main.go
7
main.go
@ -286,6 +286,13 @@ func download(current time.Time) {
|
|||||||
Fatal(err)
|
Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update the times so the latest file is the uncompressed file
|
||||||
|
currentTime := time.Now()
|
||||||
|
err = os.Chtimes(sqlite_filename, currentTime, currentTime)
|
||||||
|
if err != nil {
|
||||||
|
Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
log.Println("complete")
|
log.Println("complete")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user