ftp-deploy
ftp-deploy copied to clipboard
upload with absolute or relative paths for remote files?
I am uploading a single file test.txt
to a server. This leads to a put to /test.txt
and that is failing. Tweaking the code so that the put uses ./test.txt
or test.txt
and it works fine. Is this an issue others have faced, or is it an idiosyncrasy of the sftp server I'm connecting to (from a larger hosting company)?
seems like we need an option to send files with relative paths - https://github.com/theophilusx/ssh2-sftp-client/issues/516.
In fact, at present we send top level files as /xyx.txt
and those in directories as /dir/xyz.txt
that seems not to be a problem in a lot of cases, but is in 1 that I face