Excluding empty directories in sync?

Advertisement

skarabe
Joined:
Posts:
4
Location:
Lund, SE

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 seperate them inte 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 comtain both images and videos.

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

Thanks!
Mrten

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Re: Excluding empty directories in sync?

WinSCP does not allow that.

I have added this request to tracker.
_________________
Martin Prikryl

Reply with quote

Guest

I have added this request to tracker.

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Anonymous wrote:

That was posted back in 2008. Does WinSCP have the ability to cease a sync if the remote directory is empty?
Not yet.
_________________
Martin Prikryl

Reply with quote

dklein
Guest

martin wrote:

Anonymous wrote:

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

What about now?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

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

Reply with quote

Advertisement

You can post new topics in this forum