Hi Tanu
NOTE: This reply relates to CompleteFTP rather than edtFTPnet/PRO. Your mention of 'zip folder' had me convinced your question related to CompleteFTP since that's the name of a feature in that software, but my colleague later pointed out that you posted in the edtFTPnet/PRO forum. I'll reply regarding edtFTPnet/PRO in my second reply below.
We don't have an inbuilt way to do this, but it is possible to add the feature yourself if you have the Enterprise Edition. You can do it using the
Custom Command Script feature.
The script you'd add is the following:
function ZipFolder(zipFilePath, folderPath) {
var zipFile = new Ionic.Zip.ZipFile(zipFilePath);
zipFile.AddDirectory(folderPath);
zipFile.Save();
}
Once you've entered and applied this script it can be called as an FTP site command, an SSH command or an HTTP URL as follows:
FTP:
site ZipFolder C:\\MyZipDirectory\\MyFile.zip C:\\MyDataDirectory
(MS's FTP client requires 'quote site' instead of 'site')
SSH:
ZipFolder C:\\MyZipDirectory\\MyFile.zip C:\\MyDataDirectory
HTTP:
http://localhost/CustomCommand/ZipFolder?zipFilePath=C:\MyZipDirectory\MyFile.zip&folderPath=C:\MyDataDirectory
Unfortunately, as you can see, the paths of the two arguments have to be Windows paths rather than paths in CompleteFTP's file-system. This is because the current version of CompleteFTP (i.e. version 8.1.0) doesn't provide a means of converting between the two types of paths. Let me know if you'd like to pursue this direction and you're unhappy with the fact that you have to use Windows paths. We may be able to add a function for you to be able to convert between the two for you.
- Hans (EnterpriseDT)