Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/app-lib/src/api/pack/import/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,11 @@ pub(crate) async fn copy_dotminecraft_with_reporter(
"Import cannot overwrite a symbolic link",
));
}
fetch::copy(&source, &target, io_semaphore).await?;
let same_file = tokio::fs::try_exists(&target).await?
&& same_file::is_same_file(&source, &target)?;
if !same_file {
fetch::copy(&source, &target, io_semaphore).await?;
}
}
reporter
.update(
Expand Down
Loading