Bug 15621 – std.file.rename does not allow moving files to a different drive

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2016-01-29T10:05:40Z
Last change time
2024-12-01T16:25:53Z
Keywords
pull
Assigned to
yebblies
Creator
yebblies
Moved to GitHub: phobos#9673 →

Comments

Comment #0 by yebblies — 2016-01-29T10:05:40Z
On windows std.file.rename calls MoveFileExW, which will not move files from once device to another unless the MOVEFILE_COPY_ALLOWED flag is set. Since the cstdio function with the same name doesn't have this limitation, and it's not documented, it seems accidental.
Comment #1 by yebblies — 2016-01-29T10:10:12Z
Comment #2 by robert.schadek — 2024-12-01T16:25:53Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9673 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB