Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to download only php, html, css, xml and js files from FTP server. How to do this with WinSCP (4.2.4)?

share|improve this question

migrated from serverfault.com Nov 10 '09 at 21:45

This question came from our site for system and network administrators.

up vote 3 down vote accepted

(a simple app specific question like this belongs on the app's support forum, or perhaps SuperUser but not ServerFault, but as I know and I'm taking a work break I'll answer anyway)

You would have to use the Select Files command from the Mark menu (usually bound to the key numpad:+) and type your match pattern (i.e. *.php;*.js) into there. You can then operate on the selected files as usual.

share|improve this answer
    
How to select files in subfolders too? "Including directories" option doesn't work. – Semyon Perepelitsa Nov 11 '09 at 14:06
    
That is probably not possible. You would need a client that you could script. Or perhaps use another protocol if possible (for instance using rsync over the SSH connection if permitted by your server config - a combination of its --recursive option and --include/--exclude options woudl do what you are looking for). – David Spillett Nov 11 '09 at 15:33

The answer by @David Spillett is correct for files in the current directory.

If you want to do this recursively, use transfer file mask:
http://winscp.net/eng/docs/ui_transfer_custom

The mask would be the same as David suggested, i.e. *.php;*.js. Note that this applies to the latest version of WinSCP. In earlier versions, it would be slightly different. So make sure you upgrade, if necessary.

For more details:
http://winscp.net/eng/docs/file_mask

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .