std.path.getName(): Screwy by design?

Nick Sabalausky a at a.a
Tue Mar 1 05:36:36 PST 2011


"Steven Schveighoffer" <schveiguy at yahoo.com> wrote in message 
news:op.vrn0zlu4eav7ka at steve-laptop...
> On Tue, 01 Mar 2011 07:50:53 -0500, Nick Sabalausky <a at a.a> wrote:
>
>> "Daniel Gibson" <metalcaedes at gmail.com> wrote in message
>> news:ikij1r$e1i$1 at digitalmars.com...
>>>
>>> The "." at the start is Unix convention to say "this is a hidden
>>> file/folder", this means "ls" (the unix equivalent to "dir") doesn't 
>>> list
>>> them (ls -a does, though) and most file browsers only list them when you
>>> select something like "show hidden files" or "show dot files".
>>>
>>
>> I know. I was just wondering how the semantics of "name" and "extension"
>> applied to them.
>
> I would say it is not an extension, it is the filename.  On unix only 
> though.

As a windows guy, I would want windows builds to handle that however unix 
handles it. Filenames that start with a dot are not at all a windows thing, 
but on windows there *is* often a need to deal with unix files or unix 
tools. For instance, when using Apache or developing for an external Apache 
server even windows users still need to deal with .htaccess. And when they 
do, it needs to work right.




More information about the Digitalmars-d mailing list