[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Get Scriptname Without the Path
- From: "Robert Raschke" <rtrlists@...>
- Date: Wed, 2 Apr 2008 10:00:36 +0100
> nope, it doesn't.
>
> print(dirname("x/y/z/abc\\def"));
> print(basename("x/y/z/abc\\def"));
>
> x/y/z/abc
> def
>
> it is totally wrong on Linux, 'cause "abc\def" is a perfectly
> acceptable *file* name, not path+filename.
>
Fair enough. But being of a practical bent, I honestly don't care
about that case.
Out of interest, for what do you use filenames with backslashes?
Robby