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

lib/model: Hide temporary files on Windows while they are in use (fixes #4382) #4394

Closed
wants to merge 1 commit into from

Conversation

calmh
Copy link
Member

@calmh calmh commented Sep 23, 2017

Purpose

Hide the temp files while we are using them.

Testing

None whatsoever. I'm just assuming that the Hide() call works and that it's valid to call Hide() on an open file. If someone on Windows could confirm that it would be lovely.

I don't think there are any ways out of a temp file other than via sharedPullerState.finalClose - if there are this would result in files becoming permanently hidden which would be bad.

@AudriusButkevicius
Copy link
Member

I'd argue to leave the temp files hidden in case of error?

@calmh
Copy link
Member Author

calmh commented Sep 23, 2017

Possibly, but then we also need to audit all the paths where we might have a fast path directly to rename and so on, which I don't want to do at the moment. :)

@AudriusButkevicius
Copy link
Member

@st-review merge

@st-review
Copy link

@AudriusButkevicius: Build status is pending. I'll wait until it goes green and then merge!

@st-review
Copy link

👌 Merged as a365ae5. Thanks, @calmh!

@st-review st-review closed this Sep 23, 2017
st-review pushed a commit that referenced this pull request Sep 23, 2017
@st-review st-review added the pr-merged Legacy label used in the past for pull requests merged to the main tree label Jan 15, 2018
@calmh calmh deleted the fix-4382 branch January 15, 2018 13:49
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Sep 24, 2018
@syncthing syncthing locked and limited conversation to collaborators Sep 24, 2018
@calmh calmh restored the fix-4382 branch November 1, 2018 06:05
@calmh calmh deleted the fix-4382 branch March 23, 2020 07:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion pr-merged Legacy label used in the past for pull requests merged to the main tree
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants