[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PATCH) ensures temp files are removed #494

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Conversation

dyro
Copy link
Contributor
@dyro dyro commented Jun 28, 2024

Changes in this pull request

This PR changes the behavior of the asset_io::rename_or_copy function by deleting the copied file after it has been copied to the destination path.

This mainly affected our windows clients as the std::fs::rename fails when renaming a file from one drive to another drive on windows.

The new behavior is the following:

  1. Atttempt to rename the file
  2. If that fails, copy the file
  3. If the copy succeeds, delete the temporary file.

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

@dyro dyro force-pushed the dyross/clean-up-temp-files branch from 679f543 to ab13997 Compare June 28, 2024 16:30
Copy link
Collaborator
@mauricefisher64 mauricefisher64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dyro dyro changed the title ensures temp files are removed (PATCH) ensures temp files are removed Jun 28, 2024
@dyro dyro merged commit b38a633 into main Jun 28, 2024
22 checks passed
@dyro dyro deleted the dyross/clean-up-temp-files branch June 28, 2024 17:22
redsubmarine pushed a commit to yangoneseok/c2pa-rs that referenced this pull request Jul 2, 2024
* 'nightly' of github.com:contentauth/c2pa-rs:
  Prepare 0.32.5-nightly+2024-07-02-21fd0e0 release
  Prepare 0.32.5 release
  (PATCH) ensures temp files are removed (contentauth#494)
  Update async_generic to 1.1 (contentauth#493)
  Prepare 0.32.4 release

# Conflicts:
#	Cargo.lock
#	sdk/Cargo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants