Skip to content

Conversation

puellanivis
Copy link
Collaborator

The text of the sftp.Client.MkdirAll was found to be unclear as to what precisely “path contains a regular file” means. It means that if any path element in the chain of path elements is a regular file, that an error is returned. However, it could be mistakenly interpreted as “if any of the parent directories contains a regular file”. This new language is intended to exclude this possible reading.

Resolves #609

The dev-v2 branch does not include such language, instead paralleling the os.MkdirAll language, which also does not explicitly call out this error condition.

Copy link

@ctfrancia ctfrancia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find that this reads better

@puellanivis puellanivis merged commit fb0652c into master Jan 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

client.MkdirAll not returning an error when docs state it should

2 participants