[ACCEPTED]-Before-the-dot-in-a-file-name, what is it called?-nomenclature

Accepted answer
Score: 24

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

basename - strip 1 directory and suffix from filenames

Score: 6

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

Score: 3

Base name or file name.

0

Score: 3

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

Score: 2

Basename or primary file name.

0

Score: 2

I call it filename. So its like Filename.ext

0

Score: 1

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

Score: 1

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

Filename.Ext

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

Score: 1

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

Score: 0

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

More Related questions