Sync directory tree to single dir?

Advertisement

kleach
Joined:
Posts:
6

Sync directory tree to single dir?

Is there a way I can sync a whole directory tree into one directory on the remote site?

-Ken

Reply with quote

Advertisement

redlav
Joined:
Posts:
3
Location:
Germany

Re: Sync directory tree to single dir?

Hello, I have coincidentally the same problem.

I have created a folder structure that is used for better overview.
Changes to files (change / delete / new) are to be synced in a single
directorie for further processing in this structure.

regards redlav

Reply with quote

redlav
Joined:
Posts:
3
Location:
Germany

Re: Sync directory tree to single dir?

martin wrote:

Again, sync or plain copy (upload)?

Hi,

the transfer will take place in Sync mode. All changes should be applied to the target directory. In other words, no longer existing files in the source will be deleted from the target.

Thank you very much for your efforts.

regards redlav

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Sync directory tree to single dir?

No WinSCP cannot do this automatically.
Though scripting this in a PowerShell using WinSCP .NET assembly won't be that difficult.

Reply with quote

redlav
Joined:
Posts:
3
Location:
Germany

Re: Sync directory tree to single dir?

I have no idea how I could solve the problem with .NET.
Is there a code example where I could get my bearings?

regards redlav

Reply with quote

Guest

Re: Sync directory tree to single dir?

redlav wrote:

I have no idea how I could solve the problem with .NET.
Is there a code example where I could get my bearings?

regards redlav

Hi redlav, did you get it to work?

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Sync directory tree to single dir?

I have written an example script. See the link in my edited answer above.

Reply with quote

Advertisement

You can post new topics in this forum