views:

410

answers:

11

After-the-dot-in-a-file-name, it is called extension.

+6  A: 

The "base name," "basename," "primary name," "filename," "file name," or the "file."

Nosredna
I think we can agree that these are all interchangeable.
Thomas Owens
Apparently so, given the votes.
Robert Harvey
I'd never use "filename" and "basename" interchangeably. They mean different things.
skaffman
I don't really agree with filename or file name. Don't most OS' consider the extension to be part of the filename?
Brandon
I hear "type the filename and the extension" all the time. It's a very common usage.
Nosredna
I think the confusion comes from the ambiguousness of filename. In `c:/program.exe`, filename either refers to `Program` or the entire string as a whole.
GMan
Common by people outside of IT maybe, but we should know better :P
Brandon
Historically, some systems have mandatory extensions and some have optional extensions. When the extension is mandatory, it can be seen as metadata, and the basename and the filename are the same thing
Nosredna
+1  A: 

I've always called the everything before the dot and the extension the "file name".

Thomas Owens
+3  A: 

Base name or file name.

joeslice
+1  A: 

Basename or primary file name.

Brandon
+1  A: 

Ruby calls it the basename. That's a good, succinct name that I generally go with in other environments too.

Joe White
+4  A: 

It's called the basename. In fact, there's a unix/linux command for it:

basename - strip directory and suffix from filenames

skaffman
The `basename` I have only removes the suffix if you specify exactly what you want removed; it does not remove a suffix by default.
Greg Hewgill
Aye. The idea is the same, though.
skaffman
+3  A: 

Drive:/File/Path/FileName.FileExtension

After the period is the extension, the immediate name before it is the file name, the path before all that is the File Path, and of course at the end (or beginning) is the drive.

BaseName is another name for FileName.

GMan
Microsoft is definitely in the "filename" camp. Their style manual says to use title caps for file names, directory, and drive names, and lowercase for extensions.
Nosredna
+2  A: 

I call it filename. So its like Filename.ext

cheers

Andriyev
A: 

The boost::filesystem library calls it basename as well.

Janusz
+1  A: 

I'm not a Ruby or Linux guy, so I guess I missed the BaseName thing. It makes for all sorts of interesting naming convention hilarity. I'm in the

Filename.Ext

camp, although that, too can be a FileName. (or maybe a FileNameWithExtension).

Robert Harvey
+1  A: 

Once upon a time, the term Leafname was used, although that typically included the extension. I mention this for historical value, and since its dropped out of usage, it might be redeemable for this purpose.

Dave Gamble
Interesting. I never heard that before. http://www.encyclo.co.uk/define/Leafname
Nosredna