Bug 19834 – File exception for [std.file.copy] on windows shows the target file rather than the source file

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2019-04-27T14:00:34Z
Last change time
2019-07-05T10:44:46Z
Keywords
pull
Assigned to
No Owner
Creator
Michael Lynch

Comments

Comment #0 by lyncmi07 — 2019-04-27T14:00:34Z
When attempting to copy from a file that does not exist: copy("idontexist.txt", "target.txt"); I get the following file exception: std.file.FileException@std\file.d(4230): target.txt: The system cannot find the file specified. This happens regardless of whether the target file exists or not. This similarly happens when attempting to copy a file you do not have permissions to: copy("nopermission.txt", "target.txt"); throws the exception: std.file.FileException@std\file.d(4230): target.txt: Access is denied. I tried this on posix (macosx) and the file displayed in the exception was the source file as expected.
Comment #1 by dlang-bot — 2019-07-04T15:09:40Z
@shove70 updated dlang/phobos pull request #7101 "[ignore this]File exception for [std.file.copy] on windows shows the …" fixing this issue: - Fix issue 19834 - File exception for [std.file.copy] on windows shows the target file rather than the source file https://github.com/dlang/phobos/pull/7101
Comment #2 by dlang-bot — 2019-07-05T10:44:46Z
dlang/phobos pull request #7101 "Fix issue 19834 - File exception for [std.file.copy] on windows shows the target file rather than the source file" was merged into master: - 8ba408b521f9e45e8e92f501d462dd224c409b33 by shove70: Fix issue 19834 - File exception for [std.file.copy] on windows shows the target file rather than the source file https://github.com/dlang/phobos/pull/7101