digitalmars.D.bugs - [Issue 19834] New: File exception for [std.file.copy] on windows
- d-bugmail puremagic.com (29/29) Apr 27 2019 https://issues.dlang.org/show_bug.cgi?id=19834
https://issues.dlang.org/show_bug.cgi?id=19834 Issue ID: 19834 Summary: File exception for [std.file.copy] on windows shows the target file rather than the source file Product: D Version: D2 Hardware: All URL: http://dlang.org/phobos/ OS: All Status: NEW Severity: enhancement Priority: P3 Component: phobos Assignee: nobody puremagic.com Reporter: lyncmi07 yahoo.co.uk 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. --
Apr 27 2019