www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15621] New: std.file.rename does not allow moving files to a

https://issues.dlang.org/show_bug.cgi?id=15621

          Issue ID: 15621
           Summary: std.file.rename does not allow moving files to a
                    different drive
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: yebblies gmail.com

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.

--
Jan 29 2016