15 lines
591 B
Plaintext
15 lines
591 B
Plaintext
=> getDirname('../path/deep/down/here')
|
|
../path/deep/down/ == ../path/deep/down/
|
|
=> getDirname('a_single_directory')
|
|
. == .
|
|
=> resolvePath('./path/to/irrelevant_directory/../file.txt')
|
|
path/to/file.txt == path/to/file.txt
|
|
=> resolvePath('path/to/file.txt/')
|
|
path/to/file.txt == path/to/file.txt
|
|
=> resolvePath('path/to/file.txt')
|
|
path/to/file.txt == path/to/file.txt
|
|
=> getRelativePath('parent/directory/', 'parent/path/to/file.txt')
|
|
../path/to/file.txt == ../path/to/file.txt
|
|
=> getRelativePath('parent/directory/', 'parent/directory/path/to/file.txt')
|
|
path/to/file.txt == path/to/file.txt
|