Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Rename Path.basename to Path.filename #12

Open
pippijn opened this issue Jan 21, 2015 · 0 comments
Open

Rename Path.basename to Path.filename #12

pippijn opened this issue Jan 21, 2015 · 0 comments

Comments

@pippijn
Copy link

pippijn commented Jan 21, 2015

In GNU Make, basename means "path with its last extension stripped". In build systems, that is a common thing to operate on, and I'd like to call it "basename".

It does make sense to call it Path.basename, because of the basename(1) utility, but I think getting the "file name" from a path is semantically clearer, and reserves the word "basename" for the gmake meaning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant