Topic "How to exclude old directories from download"

Author Message
riderz

Guest


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

Quote:
/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
Code:
cd /home/
get -filemask="/home/*/log/abc.txt>1h" *


The script will download :
Quote:
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]
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
This request is being tracked already:
https://winscp.net/tracker/show_bug.cgi?id=207
riderz

Guest


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

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License