Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 14, 2010 [Issue 4188] New: std.file.remove throws Exception on success | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4188 Summary: std.file.remove throws Exception on success Product: D Version: 2.041 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: Jesse.K.Phillips+D@gmail.com CC: Jesse.K.Phillips+D@gmail.com --- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D@gmail.com> 2010-05-14 16:46:02 PDT --- Using remove on a file that does not exist will result in a exception that is not clear what the issue is, example below: import std.file; void main() { remove("IDontExist.txt"); } std.file.FileException: In std\file.d(400), data file IDontExist.txt: The operation completed successfully. The FileException states the "operation completed successfully" this is not actually the case since there was nothing to remove. Even though it had nothing to remove I think it is reasonable to consider the operation successful at which point it shouldn't be throwing an Exception. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 26, 2010 [Issue 4188] std.file.remove throws Exception on success | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | http://d.puremagic.com/issues/show_bug.cgi?id=4188 Shin Fujishiro <rsinfu@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |rsinfu@gmail.com AssignedTo|nobody@puremagic.com |rsinfu@gmail.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 26, 2010 [Issue 4188] std.file.remove throws Exception on success | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | http://d.puremagic.com/issues/show_bug.cgi?id=4188 Shin Fujishiro <rsinfu@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from Shin Fujishiro <rsinfu@gmail.com> 2010-05-26 07:23:37 PDT --- Fixed in svn r1560. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 18, 2010 [Issue 4188] std.file.remove throws Exception on success | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | http://d.puremagic.com/issues/show_bug.cgi?id=4188 --- Comment #2 from Brad Roberts <braddr@puremagic.com> 2010-06-17 18:26:02 PDT --- *** Issue 4187 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation