Example Paths
Examples below use the following paths:
Windows |
Posix |
C:\Foo\Bar\Baz.xyz |
/foo/bar/baz.xyz |
Path Decomposition
Part Name |
Windows |
Posix |
Full Path |
C:\Foo\Bar\Baz.xyz |
/foo/bar/baz.xyz |
Root Name |
C: |
<empty> |
Root Directory |
\ |
/ |
Root Path |
C:\ |
/ |
Directory Name |
C:\Foo\Bar\ |
/foo/bar/ |
Base Directory * |
C:\Foo\ |
/foo/ |
Base Name / File Name |
Baz.xyz |
baz.xyz |
(File) Stem / File Root |
Baz |
baz |
(File) Extension |
.xyz |
.xyz |
* top of the current working tree; typically used as reference for a relative path (see below)
Path Qualification
Name |
Windows |
Posix |
Absolute Name |
C:\Foo\Bar\Baz.xyz |
/foo/bar/baz.xyz |
Relative Name |
Bar\Baz.xyz * |
bar/baz.xyz ** |
* (relative to C:\Foo\
)
** (relative to /foo/
)