FTP directory listing showing seconds

Pierre Sahores psahores at free.fr
Sat Apr 10 17:09:04 EDT 2010

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 ?


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 -
> --
> 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
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

Pierre Sahores
mobile : (33) 6 03 95 77 70


More information about the Use-livecode mailing list