FTP directory listing showing seconds

Sarah Reichelt sarah.reichelt at gmail.com
Sat Apr 10 19:20:15 EDT 2010


> This work fine for me :
>
> function FTP_Dir_Refresh active_path
>   set cursor to watch
>   libURLSetFTPListCommand "NLST"
>   put FTP_Server_Address & active_path & "/" into tServer
>   put URL tServer into tData
>   replace crlf with cr in tData
>   replace lf with cr in tData
>   libURLSetFTPListCommand "LIST"
>   get URL tServer
>   filter it with "*" & toUpper(char 1 to 4 of the label of btn
> "b_blog_category") & "*_?????_*.xml?"
>   return it
> end FTP_Dir_Refresh


Hi Pierre,

I have never used libURLSetFTPListCommand so I guess it changes the
returned format and I will try that out.
But I don't understand why your function gets the file listing twice -
once with each listing type.

Cheers,
Sarah



More information about the use-livecode mailing list