Menu

Commit [r8994]  Maximize  Restore  History

0.11.7dev: Fixed two issues with file renaming on Windows:

* Convert both arguments to Unicode and use the wide Windows API. This allows using both string and Unicode paths.
* Try all three variants for file replacement (`MoveFileTransacted`, `MoveFileEx` and `os.rename`) and fall back to the next one in case of failure. This fixes renaming on filesystems where atomic operations are not supported.

Closes #8623 and #8913.

rblank 2009-12-31

changed /branches/0.11-stable/trac/util/__init__.py
changed /branches/0.11-stable/trac/util/tests/__init__.py
/branches/0.11-stable/trac/util/__init__.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/util/tests/__init__.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB