Skip to content

Commit d7b391d

Browse files
authored
doc: extend mkpath docstring (#37745)
1 parent 122237b commit d7b391d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/file.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ end
187187
mkpath(path::AbstractString; mode::Unsigned = 0o777)
188188
189189
Create all directories in the given `path`, with permissions `mode`. `mode` defaults to
190-
`0o777`, modified by the current file creation mask.
190+
`0o777`, modified by the current file creation mask. Unlike [`mkdir`](@ref), `mkpath`
191+
does not error if `path` (or parts of it) already exists.
191192
Return `path`.
192193
193194
# Examples

0 commit comments

Comments
 (0)