Page 1 of 1

strange result from ftp folder

Posted: Sun Jul 21, 2013 4:41 pm
by Neurox66
Hi,
I've strange result from ftp folder.
I've read the folder with this command:
put url ("ftp://" & FTPUSER & ":" & FTPPASS & "@" & FTPHOST) into myVar

and that is the result:
1 user group 0 May 04 07:15 colourtag-page0.css
1 user group 0 May 04 07:18 colourtag-page1.css
1 user group 0 May 04 07:16 css
1 user group 0 May 04 07:16 fonts
1 user group 56 Jul 24 2012 handheld.css
1 user group 0 May 04 07:16 images
1 user group 1566 Apr 08 2010 merror.js
1 user group 14608 Jul 24 2012 javascript.js
1 user group 5678 Feb 18 2011 terror.txt

The strange thing are: the file create in the current year non appear "2013"
Any hints ?

Re: strange result from ftp folder

Posted: Sun Jul 21, 2013 9:10 pm
by FourthWorld
Neurox66 wrote:The strange thing are: the file create in the current year non appear "2013"
Date handling in FTP file listings is poorly spec'd and capricously implimented, completely unusable for all but the most trivial of tasks.

For anything requiring useful data specificity I prefer to use LiveCode Server instead (or PHP or Python or anything else less ill-concieved than the horrible vagueries of date handling in lists in the FTP RFC).

Re: strange result from ftp folder

Posted: Mon Jul 22, 2013 6:36 am
by shaosean
I remember reading something about the dates only for the last 6 months have no year on it, but was not able to find the documentation in a cursory look..

Re: strange result from ftp folder

Posted: Thu Jul 25, 2013 3:15 pm
by Neurox66

Re: strange result from ftp folder

Posted: Thu Jul 25, 2013 3:19 pm
by shaosean
yeah, that is for PHP.. There are many different types of FTP servers and they can all output their LIST results differently..

Re: strange result from ftp folder

Posted: Thu Jul 25, 2013 3:59 pm
by FourthWorld
If you choose to handle this via CGI with LiveCode Server, see the Dictionary entry for "files" function, noting the "detailed" option.