Skip to content

Commit fb0652c

Browse files
authored
Merge pull request #611 from pkg/ISSUE-609-clarify-mkdirall-error-condition
Issue #609 - clarify what 'path contains a regular file' actually means
2 parents 088878b + 050bb2e commit fb0652c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ func (c *Client) Mkdir(path string) error {
909909
// MkdirAll creates a directory named path, along with any necessary parents,
910910
// and returns nil, or else returns an error.
911911
// If path is already a directory, MkdirAll does nothing and returns nil.
912-
// If path contains a regular file, an error is returned
912+
// If, while making any directory, that path is found to already be a regular file, an error is returned.
913913
func (c *Client) MkdirAll(path string) error {
914914
// Most of this code mimics https://golang.org/src/os/path.go?s=514:561#L13
915915
// Fast path: if we can tell whether path is a directory or file, stop with success or error.

0 commit comments

Comments
 (0)