Ticket #3454 defect closed duplicate
FilePath operations which are atomic on POSIX should be atomic on Windows
| Reported by: | glyph | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | teratorn, spiv, exarkun | Branch: | |
| Author: | Launchpad Bug: |
Description
os.rename doesn't overwrite on Windows, and so in FilePath.setContent we do a crummy platform check and delete the file in advance of moving the new one over it.
However, ReplaceFile and MoveFileEx with the MOVEFILE_REPLACE_EXISTING flag do overwrite, and we could use one of those in the implementation of moveTo instead.
Change History
Note: See
TracTickets for help on using
tickets.
