Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #609 - clarify what 'path contains a regular file' actually means #611

Merged
merged 1 commit into from
Jan 3, 2025

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