Delirium tremens
Delirium tremens

Reputation: 4739

Before-the-dot-in-a-file-name, what is it called?

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

Upvotes: 22

Views: 9389

Answers (10)

Arnkrishn
Arnkrishn

Reputation: 30424

I call it filename. So its like Filename.ext

Upvotes: 2

Dave Gamble
Dave Gamble

Reputation: 4174

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.

Upvotes: 1

Robert Harvey
Robert Harvey

Reputation: 180787

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).

Upvotes: 1

Janusz
Janusz

Reputation: 189464

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

Upvotes: 0

skaffman
skaffman

Reputation: 403461

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

basename - strip directory and suffix from filenames

Upvotes: 26

Joe White
Joe White

Reputation: 97686

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

Upvotes: 3

Brandon
Brandon

Reputation: 69973

Basename or primary file name.

Upvotes: 2

joeslice
joeslice

Reputation: 3454

Base name or file name.

Upvotes: 4

Thomas Owens
Thomas Owens

Reputation: 116169

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

Upvotes: 1

Nosredna
Nosredna

Reputation: 86196

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

Upvotes: 5

Related Questions