Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
delsner committed Aug 9, 2024
1 parent c0cd8ba commit d00db14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pack.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::{
collections::{HashMap, HashSet},
fs::FileTimes,
os::macos::fs::FileTimesExt,
path::{Path, PathBuf},
sync::Arc,
};
Expand Down Expand Up @@ -270,8 +269,7 @@ async fn download_package(
.ok_or_else(|| anyhow!("could not read package timestamp"))?;
let file_times = FileTimes::new()
.set_modified(package_timestamp.into())
.set_accessed(package_timestamp.into())
.set_created(package_timestamp.into());
.set_accessed(package_timestamp.into());

// Make sure to write all data and metadata to disk before modifying timestamp.
dest.sync_all().await?;
Expand Down

0 comments on commit d00db14

Please sign in to comment.