strange result from ftp folder
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
strange result from ftp folder
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 ?
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 ?
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: strange result from ftp folder
Date handling in FTP file listings is poorly spec'd and capricously implimented, completely unusable for all but the most trivial of tasks.Neurox66 wrote:The strange thing are: the file create in the current year non appear "2013"
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).
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: strange result from ftp folder
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
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
Re: strange result from ftp folder
yeah, that is for PHP.. There are many different types of FTP servers and they can all output their LIST results differently..
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: strange result from ftp folder
If you choose to handle this via CGI with LiveCode Server, see the Dictionary entry for "files" function, noting the "detailed" option.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn