[Issue 7002] std.path needs a isValidFilePath function

2012-02-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 Lars T. Kyllingstad bugzi...@kyllingen.net changed: What|Removed |Added CC|

[Issue 7002] std.path needs a isValidFilePath function

2011-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|

[Issue 7002] std.path needs a isValidFilePath function

2011-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 --- Comment #4 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-11-27 20:30:54 PST --- I don't need to know if it's a file, that's std.file's business. I'm talking strictly about string processing. I want to reject paths that are clearly

[Issue 7002] std.path needs a isValidFilePath function

2011-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 --- Comment #5 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-11-27 20:39:12 PST --- One more thing, your solution doesn't work because a user might pass a different dir separator, IOW on Windows this would pass while it should be

[Issue 7002] std.path needs a isValidFilePath function

2011-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 --- Comment #6 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-11-27 20:42:34 PST --- bool isValidFilePath(string filePath) { immutable end = filePath[$-1]; return (filePath.isValidPath end != '/' end != '\\'

[Issue 7002] std.path needs a isValidFilePath function

2011-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 --- Comment #7 from Jonathan M Davis jmdavisp...@gmx.com 2011-11-27 20:56:35 PST --- My point was that the lack of a directory separator on the end says _nothing_ about whether a path refers to a directory or a file. I can do both

[Issue 7002] std.path needs a isValidFilePath function

2011-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 --- Comment #8 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-11-27 23:09:18 PST --- I think there's some confusion here. When I say valid file path I mean *syntactically* valid, not whether they exist and whether something that looks

[Issue 7002] std.path needs a isValidFilePath function

2011-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 --- Comment #9 from Jonathan M Davis jmdavisp...@gmx.com 2011-11-27 23:27:50 PST --- Wrong. A forward slash is a valid directory separator on Windows, your assert will pass for this path even though it *can't* be a file path specifier on

[Issue 7002] std.path needs a isValidFilePath function

2011-11-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 7002] std.path needs a isValidFilePath function

2011-11-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7002 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED