FTP - Use on Windows IIS

Just starting out? Need help? Post your questions and find answers here.
iancrt
User
User
Posts: 12
Joined: Sun May 18, 2003 10:55 am
Location: UK, LEEDS

FTP - Use on Windows IIS

Post by iancrt »

hi,

I know a few questions have been raised regarding this since the FTP lib was added. So far everything I have needed to do with FTP worked a treat and was so simple to code (I dont tell my boss that!)

Now I'm in a position where I need to know if a file exists and its date on
FTP. Remember I am talking about connecting to a Windows Server FTP here

FTPDirectoryEntryName returns the filename with the filesize as Prefix. Strange but I can handle that
but
FTPDirectoryEntryDate returns -1

Does anyone know a way I can get the filedate for a file on FTP?
Perhaps an 'undocumented' method that returns the entire server response I can parse myself?

Thanks for any help

Ian
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Post by cas »

It should work with native PB commands.
Have you tried connecting to ftp server with some other ftp client (like FileZilla)? Is that other client getting file dates or are they missing there as well?
This is just to make sure ftp server is working fine.

And quick google search returns this info:
Retrieving file creation date/time is only possible with modern FTP servers that support MLST/MLSD extension (and also offer the "create" fact). On most servers, unfortunately, this is not available.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Unfortunately, we don't support every servers syntax for directory listing. We will add a command to get the raw line, so it should be possible to parse it easily for any kind of server.
iancrt
User
User
Posts: 12
Joined: Sun May 18, 2003 10:55 am
Location: UK, LEEDS

Post by iancrt »

Thanks for the replies. I look forward to the next release :D

In the meantime I'll cope without the date.
iancrt
User
User
Posts: 12
Joined: Sun May 18, 2003 10:55 am
Location: UK, LEEDS

Post by iancrt »

Just to Update:

I managed to get the offending IIS server switched to 'Unix Style' directory listings and the FTP library works fine now.

Obviously not a solution open to everyone but if the options there it all works fine
Post Reply