ftp-deploy icon indicating copy to clipboard operation
ftp-deploy copied to clipboard

upload with absolute or relative paths for remote files?

Open simonh1000 opened this issue 1 year ago • 1 comments

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)?

simonh1000 avatar Dec 22 '23 12:12 simonh1000

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

simonh1000 avatar Jan 20 '24 15:01 simonh1000