Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: consolidate or discard folders

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.
kurbycar32

anybody
Kurbycar32

Consolidate or discard folders

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_file. I also searched the forum before posting