Exclude some files from a getlist

Post here if you experience file transfer problems or unexpected errors.

Exclude some files from a getlist

Postby Yohann » 02 May 2012, 09:10

Hello,

I have a question, when I do a getfile I give a filemask:

ftp script iconFTP Script: (file_list.ftp) [ Download ] [ Hide ]
$TYPE="*.csv"
GETLIST($list, REMOTE_FILES,$TYPE)


But is there is a way to exclude some file from this filemask ? Like
$TYPE="*.csv ^2012.csv" (I've test this way but not working...)

Thanks in advance
Yohann
 
Posts: 4
Joined: 23 Feb 2012, 13:15

Re: Exclude some files from a getlist

Postby WAndrey » 02 May 2012, 12:01

WAndrey
 
Posts: 76
Joined: 24 Dec 2009, 14:28

Re: Exclude some files from a getlist

Postby Yohann » 02 May 2012, 13:21

Thanks for the help this was what I needed ;)
Yohann
 
Posts: 4
Joined: 23 Feb 2012, 13:15

Re: Exclude some files from a getlist

Postby WAndrey » 02 May 2012, 17:53

Well, there just is not specified that will affect the getlist, so I put a question mark. You have two options - do not use getlist or in a loop to check it and drop unneeded files. Not enough information was given about your specific task...
WAndrey
 
Posts: 76
Joined: 24 Dec 2009, 14:28


Return to Troubleshooting



Who is online

Users browsing this forum: No registered users and 1 guest