FTP directory listing showing seconds

Richard Gaskin ambassador at fourthworld.com
Tue Apr 13 20:09:30 EDT 2010


Sarah Reichelt wrote:

> Thanks for this Pierre, but it still has the problem that Richard was
> talking about with older files showing a date but no time.
> Here is an example from some test files on my site:
>
> -rw-r--r--    1 troz       troz                0 Oct  5  2009 test.html
> -rw-r--r--    1 troz       troz              228 Mar 17 23:47 test.irev
>
> Taking Jerry's advice to get listings via CGI, I came up with the
> following irev script:
>
> <?rev
> 	put $_GET["folder"] into tFolder
> 	put shell("ls -l --full-time" && tFolder) into tList
> 	delete line 1 of tList  -- sum of file sizes
>
> 	-- format display for web page (remove next line for CGI work)
> 	replace cr with "<br />" & cr in tList
> 	
> 	put tList
> ?>
>
> Applying this to the same files in my test folder, I get:
>
> -rw-r--r-- 1 troz troz 0 2009-10-05 19:20:21.000000000 -0500 test.html
> -rw-r--r-- 1 troz troz 228 2010-03-18 00:47:57.000000000 -0500 test.irev

I wound up using "the detailed files", which apparently the engine 
handles as nicely on the server as it does on the desktop. Sweet.

--
  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




More information about the Use-livecode mailing list