December 18, 2007
Hi Mathew,

We are using the latest version of recls, and we are seeing a problem here with the FTP listing.

When  accessing an IIS site no problem occurs, though when accessing a SunOS 5.8 FTP Server something strange happens, when listing the files the information returned for contains some stuff regarding the access permissions and dates:

The file name that we are listing is: "aOFS_ADJ_P00000100"

GetPath():
"/SDO/data/obs/raw/20071215/001/001/-rw-r-----+  1 omc      omc        88792
Dec 15 02:00 aOFS_ADJ_P00000100"

GetFileName():
"-rw-r-----+  1 omc      omc        88792 Dec 15 02:00 aOFS_ADJ_P00000100"

GetFileExt():
""


The recls configuration is the following:

recls::uint32_t flags = recls::RECLS_F_FILES | recls::RECLS_F_RECURSIVE | recls::RECLS_F_NO_FOLLOW_LINKS | recls::RECLS_F_DETAILS_LATER;

if (m_bFTPPassiveMode)
{
    flags |= recls::RECLS_F_PASSIVE_FTP;
}


Could you dispense some advice into this situation?

Thanks in Advance
Cláudio Albuquerque


December 18, 2007
I'm not really an FTP expert, but this looks like a bug in either the Sun server or (perhaps more likely ??) the WinInet libraries you're using.

All recls does is defer to the FtpFindFirstFile/FtpFindNextFile, so it's pretty unlikely to be the culprit.

However, it's __possible__ that we could put a mod into recls to detect this bug and correct for it. But it'd be a non-trivial effort (not necessarily prohibitive in itself), and would require plenty of examples from which the bug and its corrections could be confidently deduced (more of a problem, perhaps).

HTH

"Cláudio Albuquerque" <cláudio@nowhere.com> wrote in message news:fk8uvc$1rho$1@digitalmars.com...
>
> Hi Mathew,
>
> We are using the latest version of recls, and we are seeing a problem here with the FTP listing.
>
> When  accessing an IIS site no problem occurs, though when accessing a
SunOS
> 5.8 FTP Server something strange happens, when listing the files the information returned for contains some stuff regarding the access permissions and dates:
>
> The file name that we are listing is: "aOFS_ADJ_P00000100"
>
> GetPath():
> "/SDO/data/obs/raw/20071215/001/001/-rw-r-----+  1 omc      omc
88792
> Dec 15 02:00 aOFS_ADJ_P00000100"
>
> GetFileName():
> "-rw-r-----+  1 omc      omc        88792 Dec 15 02:00 aOFS_ADJ_P00000100"
>
> GetFileExt():
> ""
>
>
> The recls configuration is the following:
>
> recls::uint32_t flags = recls::RECLS_F_FILES | recls::RECLS_F_RECURSIVE | recls::RECLS_F_NO_FOLLOW_LINKS | recls::RECLS_F_DETAILS_LATER;
>
> if (m_bFTPPassiveMode)
> {
>     flags |= recls::RECLS_F_PASSIVE_FTP;
> }
>
>
> Could you dispense some advice into this situation?
>
> Thanks in Advance
> Cláudio Albuquerque
>
>