Naming the Parts of a Path and File


This is one that comes up from time to time, and I am always re-inventing the wheel trying to come up with a standard (usually to just find out that it conflicts with the ‘standard’ I came up with six months before).

So, to provide myself with a reference, I am creating this entry: based on the names suggested on this site.
Assume the current directory is C:\users\Joe\For Work\

Path and File Part name
C:\users\Joe\For Work\Widget\foo.src absolute path or full path, or path
C:\users\Joe\For Work\Widget\foo.src absolute directory or current directory
C:\users\Joe\For Work\Widget\foo.src directory
C:\users\Joe\For Work\Widget\foo.src subdirectory
C:\users\Joe\For Work\Widget\foo.src relative path
C:\users\Joe\For Work\Widget\foo.src file name or base name
C:\users\Joe\For Work\Widget\foo.src file root
C:\users\Joe\For Work\Widget\foo.src file extension (with or without the dot)
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s