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

Steven Schveighoffer schveiguy at yahoo.com
Tue Mar 1 04:58:23 PST 2011


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.  And as to my opinion on files with multiple dots, the last one is  
the extension, the others are part of the filename.

FYI In addition to ls not listing them, the shell doesn't consider them in  
* expansion.  so echo * does not show hidden files.

-Steve


More information about the Digitalmars-d mailing list