How to exclude old directories from download

Advertisement

riderz
Guest

How to exclude old directories from download

I want to download newly-created files in newly-created directories from a remote host to my local host. For example, my remote host look likes

/home/U1/log/abc.txt
/home/U2/log/abc.txt
/home/U3/log/abc.txt

I only want to download last 1 hour abc.txt created (in U1 directory). Is there any way to exclude directories with respect to time. I cannot exclude by name coz I dont know the name of new directories created. I use the code
cd /home/
get -filemask="/home/*/log/abc.txt>1h" *

The script will download :
U1/log/abc.txt
U2/log/
U3/log/

which is quite good But I dont want to get empty directory U2 and U3 coz it would waste a lot of time.

Thanks in advance.[/quote]

Reply with quote

riderz
Guest

Thanks
It's a nice feature to let Winscp exlude empty directories from downloading. I'm looking forward to the next update :)

Reply with quote

Advertisement

You can post new topics in this forum