Skip to content

Commit

Permalink
clarify mkpath docstring (#43987)
Browse files Browse the repository at this point in the history
Close #43964
  • Loading branch information
tlienart committed Feb 12, 2022
1 parent 3326cc3 commit e422590
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ end
Create all intermediate directories in the `path` as required. Directories are created with
the permissions `mode` which defaults to `0o777` and is modified by the current file
creation mask. Unlike [`mkdir`](@ref), `mkpath` does not error if `path` (or parts of it)
already exists. Return `path`.
already exists. However, an error will be thrown if `path` (or parts of it) points to an
existing file. Return `path`.
If `path` includes a filename you will probably want to use `mkpath(dirname(path))` to
avoid creating a directory using the filename.
Expand Down

0 comments on commit e422590

Please sign in to comment.