Local directory tree to 1 single remote directory

Advertisement

Martin Jacobs
Guest

Local directory tree to 1 single remote directory

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Local directory tree to 1 single remote directory

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.

Reply with quote

Martin Jacobs
Guest

Re: Local directory tree to 1 single remote directory

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

Reply with quote

Advertisement

You can post new topics in this forum