Closed DSpeichert closed 9 years ago
looking at the commit it looks like you deleted libs/SFTP.js also thanks :)
@heihachi Yes, I figured it was not used at all.
I see what you mean lol
Tested on Windows 7. Works.
These changes need to be made to the FtpConnection.js file also.
This will also fix #8, if the changes are also applied to the FTP js.
This will also fix #8, if the changes are also applied to the FTP js.
@amoussard Would you care to merge this? :)
This could be simplified by just adding the .replace to the end of the single line of code:
var destinationFile = path.join(self.config.getRemotePath(), file.getPath()).replace(/[\\*]/g,"/");
Hi all, Sorry for the delay, I was in vacations... I will take a look and merge that ;)
I have take a look at your PR. I have only one question, why this transformation is not done in FileManager, when the path is "registered" to be treated ?
That is a good question. It was a hotfix, so it's probably not the most right solution. I will look into FileManager later today.
Okay nice. It's not a problem, just tell me if you find (I don't know if I will have the time today). However, I have made a branch, you can check if the implementation seems correct to you : https://github.com/amoussard/sftp-deployment/tree/evol/fix-windows-path
Looks good but doesn't destinationDirectory
also require the transformation?
Just adding a note to you guys that this fixed my problems when connecting to SFTP. But on FTP-connections i get an error:
Prohibited file name: \www\beta
And in my config it is: "remote_path": "/www/beta/"
@Probeus Yes, we already know. The fix was only applied to the SFTP connection, but to FTP. @DSpeichert will try to move it upstream into the FileManager.
the implementation at https://github.com/amoussard/sftp-deployment/blob/evol/fix-windows-path/lib/filesystem/FileManager.js has a code issue. remove the () before the = on line 104 ;-)
Fixes #17