Topic "consolidate or discard folders"

Author Message
Kurbycar32

Guest


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: https://winscp.net/eng/docs/custom_commands#search. I also searched the forum before posting
kurbycar32

Guest


anybody
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
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:
https://winscp.net/eng/docs/library_example_recursive_search_text

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
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License