The following is path nomenclature inferred by the node.js library:
- path:
/path/to/your/file.txt - dirname:
/path/to/your/ - basename:
file.txt - extname
txt
When writing code for node, it is preferable to use these terms for variables, etc.
Confusion arises with terms. Some people believe the path(name) only refers to the dir(ectory) name, when in fact a legal path may or may not contain the basename of a file. When it does, it may also be known as the filename.
- http://nodejs.org/docs/latest/api/path.html
- https://en.wikipedia.org/wiki/Path_%28computing%29
- http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#
- http://stackoverflow.com/questions/2235173/file-name-path-name-base-name-naming-standard-for-pieces-of-a-path
- http://www.linfo.org/path.html