Topic "Local directory tree to 1 single remote directory"

Author Message
Martin Jacobs

Guest


I'm running WinSCP 5.1.2 on an WIN7 machine. I've been looking for the option to upload files from a local directory tree to a single remote directory, but on the remote I always get the directory structure from local. I try to accomplish it in the scripting facility.
So, local I have a directory FAX with subdirs IN and OUT. Both contain files. Now I want the files from both subdirs be placed in a directory called ALLFAXES on the remote machine.

Is this possible? Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
There's no build-in feature that flattens the directory structure. But if you have only two local folders, you can just issue two put commands with the same target remote directory.
Martin Jacobs

Guest


prikryl wrote:
There's no build-in feature that flattens the directory structure. But if you have only two local folders, you can just issue two put commands with the same target remote directory.


Unfortunately the structure of the local tree is a bit more complex and dynamic then my FAX example. Thanks anyway for the prompt response.
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