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

martin

Is that VB.NET? This should do:
Dim transferOptions As New TransferOptions
With transferOptions
    .FileMask = "*<today"
End With
   
session.GetFiles(
    "/remote/path/*", "C:\local\path\", False, transferOptions).Check()
dakeeper

I tried...
session.GetFiles("/home/devel/test/*<2022-04-26 23:59:59", "C:\Users\XY41743\Desktop\somefolder\", False, transferOptions)

But it's only lookin in /home/devel/test and not in /home/devel/test/1/ where the files are.

anyone?
dakeeper

Session.GetFiles Method but only files older than x and recursive?

Hello,

I need help on a vb.net script I'm coding.
I need to download files via ftp from a server. I need to download all files older than today - 1 day. The problem is that the files are in subfolders (each day as a folder and another subfolder called 1), so that the command must be recursive.

In short: download all files older that yesterday from all folders.

Any ideas?
rgr