FTP directory listing showing seconds
Richard Gaskin
ambassador at fourthworld.com
Sat Apr 10 18:56:46 EDT 2010
Pierre Sahores wrote:
> Bonjour Richard,
>
> 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
>
> Does this help ?
Thank you for posting that, but it doesn't get around the built-in
limitations of FTP: the RFC says that the LIST command will return the
date in this format:
Mar 28 14:24
..or if older than six months (possibly longer, depending on server
config) it'll just return the year where the time is:
Mar 29 2008
My desire to keep all the logic client-side is for fairly trivial
reasons, so using a CGI to get the info I need from the server won't
kill me, and will give it to me down to the second, which is what I'm after.
--
Richard Gaskin
Fourth World
Rev training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
revJournal blog: http://revjournal.com/blog.irv
> Le 10 avr. 10 à 21:29, Richard Gaskin a écrit :
>
>> The FTP 'LIST' command sucks. It only shows mod dates down to the
>> minute, and only for those files modified within the last six
>> months; earlier than that and you only get the day.
>>
>> On the desktop of course we enjoy being able to get time stamps down
>> to the second. Nice.
>>
>> Is there some obscure FTP command I've overlooked which can get a
>> list of files showing mod dates down to the second?
>>
>> I may have to use a CGI for this project, but I'd love a solution
>> that can keep everything client-side if possible.
>>
>> TIA -
>>
More information about the use-livecode
mailing list