Skip to content

Commit

Permalink
add todo for hack removal (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
neonphog authored Oct 23, 2023
1 parent 1238a63 commit 7770b30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/tx5-core/src/file_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ fn tmp_persist<F, P: AsRef<std::path::Path>>(
p: P,
) -> std::result::Result<F, tempfile::PersistError<F>> {
// this is even less atomic...
// TODO - remove this hack after: https://github.com/Stebalien/tempfile/issues/259 is resolved
if std::fs::metadata(&p).is_ok() {
// file might exist, error out
return Err(tempfile::PersistError {
Expand Down

0 comments on commit 7770b30

Please sign in to comment.