Skip to content

Emitting RNTO command events. - #145

Open
ajguerreror wants to merge 2 commits into
nodeftpd:masterfrom
Wattics:master
Open

Emitting RNTO command events.#145
ajguerreror wants to merge 2 commits into
nodeftpd:masterfrom
Wattics:master

Conversation

@ajguerreror

Copy link
Copy Markdown

No description provided.

Comment thread lib/FtpConnection.js Outdated
self.emit('file:rnto', status, {
fileFrom: self.filefrom,
fileTo: fileto,
error: err

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd prefer an additional errorState: Boolean(err) like we have with the file:stor event, and error: (err || false) as a convenience to users to make property access (e.g. err.name, err.message) always safe.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok. Doing it. One extra question: Which are the most recent compatible node version for this project?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've no idea but I expect it to work with all Node.js LTS versions.

@mk-pmb

mk-pmb commented Jun 23, 2020

Copy link
Copy Markdown
Contributor

Thanks! 👍

@pedroaugusto

Copy link
Copy Markdown

You're welcome. What is the merge policy? I see a bunch of old PR's not yet merged.

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.

3 participants