Improve docs for directory, normalize
This commit is contained in:
parent
61b108d527
commit
f84512228e
1 changed files with 6 additions and 3 deletions
|
@ -3395,7 +3395,8 @@ environment variable.
|
||||||
|
|
||||||
### directory (filepath) {#pandoc.path.directory}
|
### directory (filepath) {#pandoc.path.directory}
|
||||||
|
|
||||||
Get the directory name; move up one level.
|
Gets the directory name, i.e., removes the last directory
|
||||||
|
separator and everything after from the given path.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
|
@ -3489,8 +3490,10 @@ Returns:
|
||||||
|
|
||||||
Normalizes a path.
|
Normalizes a path.
|
||||||
|
|
||||||
- `//` outside of the drive can be made blank
|
- `//` makes sense only as part of a (Windows) network drive;
|
||||||
- `/` becomes the `path.separator`
|
elsewhere, multiple slashes are reduced to a single
|
||||||
|
`path.separator` (platform dependent).
|
||||||
|
- `/` becomes `path.separator` (platform dependent)
|
||||||
- `./` -\> ''
|
- `./` -\> ''
|
||||||
- an empty path becomes `.`
|
- an empty path becomes `.`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue