An absolute path must begin with either a '/' or a ''. A single slash represents the root directory of the filesystem. Any text after the first slash specifies a path relative to the root.
A relative path begins either with a '.' followed by a '/' or ''; or, with any other valid path character. Each "node" in the path is delimited with a slash. So, foo/bar can be separated into a "foo" node and a "bar" node. The last node in the path is considered to be a directory if it is suffixed with a slash; otherwise, it's assumed to be a file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|