Topic "consolidate or discard folders"

Author Message


I am synchronizing from a server using a txt script. The server contains many directories, and I do not need the folders, just the files inside. Is there a way to download only the contents of those folders without recreating the directory structure? I realize that a sync probably wont do the job anymore and I am open to change. Maybe I can use a search that includes subfolders and then download those results, but I was unable to determine the syntax from the page I found on that subject: I also searched the forum before posting


[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
You cannot do this using simple scripting.
But this could be easy using WinSCP .NET assembly.

This example shows how to recurse:

It actually even downloads all the files the one folder (temp folder in this case). So it just needs few tweeks to do what you need.
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License