On Thu, Feb 10, 2011 at 10:48:28AM +0100, Gerrit . wrote:
> open sftp://user:password@server:port
> mirror -ac -I "text1.*" -I "text2.*" -I "text3.*" --newer-than "week ago"
> /dir /dir
> exit
> 
> I'm starting the script on my client which downloads from a server.
> When the lftp starts with the script all the directories in /dir are copied
> to my /dir as empty directories. Only the files in a /dir/matchinginclude/
> are copied.
> 
> How to resolve this?

Use --no-empty-dirs option or exclude the directories explicitly.

-- 
   Alexander.

Reply via email to