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

ensureDir should throw on Access Denied during MKD #218

Open
vicary opened this issue Sep 30, 2022 · 0 comments
Open

ensureDir should throw on Access Denied during MKD #218

vicary opened this issue Sep 30, 2022 · 0 comments

Comments

@vicary
Copy link

vicary commented Sep 30, 2022

Describe the bug
Currently running ensureDir I only receive a 550 The system cannot find the file specified. which from the CMD, but when running MKD it is already receiving a 550 Access is Denied. Throwing access denied is much more concise and self explanatory about the actual situation than a file not found error.

Example code

await client.ensureDir("a/b/c/d/e");

Console output

> MKD a
< 550 Access is denied.
> CMD a
< 550 The system cannot find the file specified.

Which version of Node.js are you using?
Node v16.17.1

Additional context
The FTP server is a Microsoft File Server, and is believed to be missing my permission to create folders.

A correct error message would definitely save me an hour of debugging.

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

No branches or pull requests

1 participant