[Issue 7001] std.path.baseName and isValidFilename wrong documentation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 6 23:14:02 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7001



--- Comment #4 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-12-06 23:14:01 PST ---
If you have /dir or dir/, the name of the directory is dir, not /dir, or dir/.
It is illegal on Posix systems to have a directory name with / in it, just like
it's illegal on Windows systems to have a directory name with \ in it. A _path_
can have the directory separator for the current OS in it, but not a file or
directory name, and isValidFilename is checking file _names_, not paths.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list