std.path.getName(): Screwy by design?
Lars T. Kyllingstad
public at kyllingen.NOSPAMnet
Tue Mar 1 05:13:33 PST 2011
On Tue, 01 Mar 2011 08:02:44 -0500, Steven Schveighoffer wrote:
> On Tue, 01 Mar 2011 04:16:36 -0500, Jonathan M Davis
> <jmdavisProg at gmx.com> wrote:
>
>> I can understand if the path stuff
>> can't deal with / or \ in file names (that's probably not worth trying
>> to get to
>> work right), but it _should_ be able to handle directories with dots in
>> them and
>> files with no extension.
>
> / and \ are not legal in names on any filesystem that I know of.
>
> -Steve
On a *NIX machine, try
touch "c:\\foo\\bar"
You may be surprised. ;)
-Lars
More information about the Digitalmars-d
mailing list