Post a reply

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

Ciantic

Proposal for a API Session.CompareDirectories(...)

I have an simple proposal for the API, new method named: Session.CompareDirectories(...) Since adding to SynchronizeDirectories is not a backwards compatible, so creating a new method is probably good idea.

It's result API could be similar as the SynchronizeResult maybe CompareResult but it would allow to commit each change one by one.
martin

Re: Session.SynchronizeDirectories() preview missing?

Thanks for your post.

This request is being tracked already:
https://winscp.net/tracker/885
Ciantic

Session.SynchronizeDirectories() preview missing?

Hello!

I'm trying to use Session.SynchronizeDirectories but it's missing a preview flag.

How can I do preview using .NET API? I need to first synchronize using `SynchronizationMode.Both` but I need to see the changes first before I let it to proceed to do the real thing, hence I need preview first.

Thanks

Edit: I found this: https://github.com/winscp/winscp/blob/defd6cbbe3e028a2293310f70b8247365c8f2816/dotnet/Session.cs#L908 Maybe just adding a preview bool switch there will do? I can then check the SynchronizationResult and commit the changes manually by iterating the preview result list.

Edit2: I tried in my local fork of WinSCP dotnet DLL but it probably requires a bigger change than just a flag.