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

riderz

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

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]