少于1分钟
将以下英文翻译为中文:
https://gohugo.io/functions/path.dir/
Dir returns all but the last element of a path.
path.Dir PATH
path.Dir
returns all but the last element of PATH
, typically PATH
’s directory.
The returned path will never end in a slash. If PATH
is empty, .
is returned.
Note: On Windows, PATH
is converted to slash (/
) separators.
|
|