strange result from ftp folder

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

strange result from ftp folder

Post by Neurox66 » Sun Jul 21, 2013 4:41 pm

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 ?
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: strange result from ftp folder

Post by FourthWorld » Sun Jul 21, 2013 9:10 pm

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).
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: strange result from ftp folder

Post by shaosean » Mon Jul 22, 2013 6:36 am

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

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Re: strange result from ftp folder

Post by Neurox66 » Thu Jul 25, 2013 3:15 pm

Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: strange result from ftp folder

Post by shaosean » Thu Jul 25, 2013 3:19 pm

yeah, that is for PHP.. There are many different types of FTP servers and they can all output their LIST results differently..

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: strange result from ftp folder

Post by FourthWorld » Thu Jul 25, 2013 3:59 pm

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

Post Reply