evanplaice / node-ftpsync

Intelligent file syncronization over FTP
http://evanplaice.github.io/node-ftpsync
MIT License
74 stars 21 forks source link

Create remote root dir if necessary and specified in options #19

Open jbaumbach opened 9 years ago

jbaumbach commented 9 years ago

I'll admit it's not super elegant. It just tries to create the remote root dir regardless of whether it exists already or not. If it does, this will just silently fail with no harm done. This feature was required for my project.

evanplaice commented 8 years ago

@jbaumbach Sorry about the delay, somehow I missed the notifications that this project had outstanding PRs.

Just to clarify, this covers the use case where the root directory to sync to is a one other than the root directory of the remote server? I'm all for the [principle of least astonishment]() but I question whether there's a downside to enabling this by default. Wherever possible, I'd like to keep the API as simple as possible.

Either way, README.md will need to be updated so other users can see how to use it.

BTW, thank you for your contributions.