FTP Upload Selection macro available.
Posted by tier777 on 2005-10-19
It allows you to upload any selection of files or folders to a specified folder on an FTP server. Here are the relevant bits from the comment header (take special note of the disclaimers regarding binary file handling!):
WinCvs Macro "Ftp Test" $Revision: 126.96.36.199 $ written by Oliver Giesen, Oct 2005 contact: email: ogware@... icq: 18777742 y!: ogiesen Feel free to modify or distribute in whichever way you like, as long as it doesn't limit my personal rights to modify and redistribute this code. Apart from that the code is supplied "as-is", i.e. without warranty of any kind, either expressed or implied, regarding its quality or security. Have fun! ATTENTION: You will need at least WinCvs 1.3.5 to execute any Python macros from within WinCvs! This macro has last been tested against WinCvs 2.0.3 . ====== Usage: - Select one or more files and/or folders - Run the macro from the Macros menu - Follow the on-screen instructions ~ The macro will attempt to login to the given host and chdir into the given destination directory (creating it if necessary). It will then upload the selected files and folders. It will recreate the directory structure of your sandbox, i.e. if you select files from multiple folders with Flat View turned on, the macro will upload the files to the relative paths that are displayed in the Path column. ============= Known Issues / "Un-niceties": - No auto-detection of binary files to speak of! If files are under CVS-control and are marked binary, the macro will pick this up but "Unknown" files are currently always transferred as text. - I have occasionally noticed corruption of binary files but haven't yet been able to determine what causes it and how to prevent it. - No support yet for advanced FTP connection options, like port, proxy, active mode, etc. - The password entry is in plain text. - The password is not remembered (though it would be trivial to add that functionality). This is actually on purpose for security/privacy reasons but still a bit annoying in practice. Please report any problems you may encounter or suggestions you might have to ogware@... .