Skip to content

Conversation

@limikael
Copy link

This PR adds a newFilesOnly option. In order to solve e.g. #42.

It does it slightly different than #141 in that it doesn't rely on any state stored on the server. Also slightly different from #100 in that it doesn't use the file date obtained from a remote directory listing. Rather it uses the MDTM command. The reason is that the MDTM command is guaranteed to send back the time in GMT as of RFC 3659. The time in the directory listing in local server time, and this causes problems if the server and client are in different time zones.

However, there is a bug in the node-ftp library when parsing the time returned from the MDTM command, so it is still parsed as local time rather than GMT. I submitted a PR here: node-ftp. In the meantime, I also included the fix in the source code for ftp-deploy.

@simonh1000
Copy link
Owner

This looks interesting, but I will need a while to review it as I have a lot on my plate at present

@limikael
Copy link
Author

Cool cool! Thanks for quick reply... Take your time!

@simonh1000 simonh1000 self-requested a review May 13, 2023 08:59
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.

2 participants