How to "get" but exclude sub-directories

Advertisement

chrish22
Guest

How to "get" but exclude sub-directories

Hi

I'm using WinSCP 4.3.6 and creating a script to retrieve files.

I'm trying to get all files from a remote directory

get *.*

The remote directory has an archive sub-folder - I don not want to get this.

Is there a way I can do this?

Thanks

Chris

Reply with quote

TimU
Joined:
Posts:
25
Location:
Sydney

Set this switch in your transfer script, or via the command line:

#Do Not Recurse through sub-dirs
Option exclude */

Reply with quote

Guest

TimU wrote:

Set this switch in your transfer script, or via the command line:

#Do Not Recurse through sub-dirs
Option exclude */

Nothing short of superb, this had worked.

Thanks for your help

Reply with quote

Advertisement

You can post new topics in this forum