Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Guest

How about now? Is this resolved?
martin

Not yet. But I've raised a priority of the request.
dklein

What about now?
martin

Not yet.
Guest

That was posted back in 2008. Does WinSCP have the ability to cease a sync if the remote directory is empty?
skarabe

Thanks, that would be a very nice feature to have!
martin

Re: Excluding empty directories in sync?

WinSCP does not allow that.

I have added this request to tracker.
skarabe

Excluding empty directories in sync?

Hi
I'm using the WinSCP automation script to synchronize my images and videos from my digital camera to my NAS (for backup). Locally both images and videos are in the same subtree and also sometimes in the same directory. But on the NAS, I would like to separate them into a Videos/ and Images/ subdir.

I use an include/exclude option to sync:
option include "*/;*.jpg;*.tif"
synchronize remote "D:\Camera" "/share/Images"
option exclude "*/;*.jpg;*.tif"
option include "*/;*.avi;*.mov"
synchronize remote "D:\Camera" "/share/Videos"

Everything works like a charm, but one thing.. Some (remote) directories will be empty, since, of course, not all local directories contain both images and videos.

Is there a way to either not sync the empty directories (preferred) or remove them afterwards?

Thanks!
Mårten