Topic "getting directories"

Author Message
taw

Guest


Hi! Could someone help me please

i have a directory on a FTP server, here are a lot of folders with random names. Each folder contains subfolder with defined name. How can i get (via filter or find dialog maybe) and then download this defined subfolders only?

e.g.
../workDirectory/*randomNameFolder*/*folderINeed*/*files*

I`ve been trying it for 5 days =\
thanks for help
Screenshot_1.png (73.5 KB) [Download]

Description: (none)

Screenshot_1.png (73.5 KB) [Download]

Description: (none)

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Download where? Do you want to maintain the directory structure? Or download them to a common folder?

Anyway, there's hardly an easy way to do this. You should have to write some (PowerShell?) script.
taw

Guest


martin wrote:
Download where? Do you want to maintain the directory structure? Or download them to a common folder?

Anyway, there's hardly an easy way to do this. You should have to write some (PowerShell?) script.


to a common folder

oh, i thought it is easy task... have no experience in scripts =\
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
You can start with this PowerShell script:
https://winscp.net/eng/docs/library_example_recursive_download_custom_error_handling

Modify it to download only file in the folder you are after and to use the same target folder in the GetFiles call.
_________________
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