Recursive listing not displaying any items (LIST -aLR)

Possible reference:
https://www.smartftp.com/forums/viewtopic.ph ... =recursive

I'm connecting to a custom ftp server (which I can easily re-code if necessary..), and SmartFTP is saying that there are no files when I attempt a recursive list (LIST -aLR).

This isn't (necessarily) a server problem, as other clients can read the recrusive list fine.

Unfortunately I can't grant an annonymous account on the ftp server, so I have as many logs as I can think of here:

Session Transcript:



    SmartFTP v1.0.984.1



    Resolving host {name}...



    Connecting to ({name}) ->  IP: {IP} PORT: {port}



    Connected to ({name}) -> Time = 47ms



    Socket connected waiting for login sequence.



220 {etc.}server ready.  Please login as yourself.



    USER faux



331 Password required for faux.



    PASS (hidden)



230 User faux logged in.



    SYST



215 UNIX Type: L8



    FEAT



500 'FEAT': command not understood.



    REST 100



350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer.



    REST 0



350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer.



    PWD



257 "/w/faux" is the current directory.



    CWD /w/faux/props



250 CWD command successful.



    PWD



257 "/w/faux/props" is the current directory.



    TYPE A



200 Type set to A.



    PASV



227 Entering Passive Mode (81,86,62,55,31,208)



    Opening data connection IP: 81,86,62,55,31,208 PORT: 8144.



    LIST -aLR



150 Opening ASCII mode data connection for ls (443 bytes).



    454 bytes received successfully. (454 B/s) (00:00:01).



226 Transfer complete.





(sample) Show raw listing:



total 4



drwxrwxr-x   0 faux     Creator         0 Jul 11  2004 .



drwxrwxr-x   0 faux     Creator         0 Jan 10 03:02 ..



drwxrwxr-x   0 faux     Creator         0 Jul 11  2004 clothes



-rw-rw-r--   1 faux     Creator        21 Jul 11  2004 defs.h







clothes:



total 3



drwxrwxr-x   0 faux     Creator         0 Jul 11  2004 .



drwxrwxr-x   0 faux     Creator         0 Jul 11  2004 ..



-rw-rw-r--   1 faux     Creator        21 Jul 11  2004 defs.h



(avaliable at http://faux.sison.nl/raw.txt if the forum messes it up)

Other servers I've tested it with..
ftp://ftp.smartftp.com seems to completely ignore the R switch, so...
Other servers give a 0 byte listing if you specify the R switch..
And ftp://ftp.redhat.com is still replying (3MB downloaded, around 65000 items so far..)
My web (host's) server's ftp... hmm.. really weird results off this one. Maybe another bug-report time. No idea what the software is, it doens't identify itself.


Appendix:

Client info:



+- System -----------------------------







Microsoft Windows XP Professional 



Service Pack 2 (Build 2600)







CPU Speed         : 1533 MHz



Total Memory      : 785956 KB



Free Memory       : 381540 KB







+- SmartFTP ---------------------------







Version           : 1.0.984.1



Time Stamp        : 2005-01-06 23:34:08



Language ID       : 0x0409



Language File     : ResEng.dll







+- Application DLL --------------------







controls.dll      : 1.6.984.1



ftpapi.dll        : 2.0.984.1



language.dll      : 1.0.984.1



reseng.dll        : 1.3.984.1



smarthook.dll     : 1.0.2.1







+- System DLL -------------------------







unicows.dll       : 1.0.4018.0



shell32.dll       : 6.00.2900.2180 (xpsp_sp2_rtm.040803-2158)



shlwapi.dll       : 6.00.2900.2180 (xpsp_sp2_rtm.040803-2158)



comctl32.dll      : 6.0 (xpsp_sp2_rtm.040803-2158)



riched20.dll      : 5.30.23.1221



schannel.dll      : 5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)







+- Internet Explorer ------------------







Version           : 6.0.2900.2180







+- Winsock ----------------------------







Winsock           : 2.2



Hello ..

If you compare the listing from redhat and the one from your FTP server you can see that the start line ".:" with the current directory is missing in the result of your FTP server:

redhat:
.: <= START



drwxr-xr-x    2 ftp      ftp          4096 Jul 13  2002 gziptar







./gziptar:



-rw-r--r--    1 ftp      ftp       2601866 May 15  2000 openmotif-2.1.30-FreeBSD-i386.tgz

your's:
total 4 



drwxrwxr-x   0 faux     Creator         0 Jul 11  2004 . 



drwxrwxr-x   0 faux     Creator         0 Jan 10 03:02 .. 



drwxrwxr-x   0 faux     Creator         0 Jul 11  2004 clothes 



-rw-rw-r--   1 faux     Creator        21 Jul 11  2004 defs.h 







clothes: 



total 3 



drwxrwxr-x   0 faux     Creator         0 Jul 11  2004 .

-Mat

As close as I can get it. No change in result.
.:



drwxrwxr-x   0 faux     Creator         0 Jun 25  2004 .



drwxrwxr-x   0 faux     Creator         0 Jun 25  2004 ..



drwxrwxr-x   0 faux     Creator         0 Jul 12  2004 abilities



drwxrwxr-x   0 faux     Creator         0 Oct 22 03:47 beartrap



drwxrwxr-x   0 faux     Creator         0 Jul  7  2004 borrow



drwxrwxr-x   0 faux     Creator         0 Dec 10 14:18 bracelet



[...snip...]



drwxrwxr-x   0 faux     Creator         0 Oct 27 17:18 workrooms



drwxrwxr-x   0 faux     Creator         0 Oct 27 01:08 www







./abilities:



drwxrwxr-x   0 faux     Creator         0 Jul 12  2004 .



drwxrwxr-x   0 faux     Creator         0 Jun 25  2004 ..



-rw-rw-r--   1 faux     Creator      2154 Dec 13 18:58 cravings.c



[...snip...]



drwxrwxr-x   0 faux     Creator         0 Dec  1 15:42 un







./beartrap:



drwxrwxr-x   0 faux     Creator         0 Oct 22 03:47 .



[...snip...]



-rw-rw-r--   1 faux     Creator       431 Oct 22 06:04 trappedshad.c







etc...







ProFTPD 1.2.9 on Mandrake linux gives this, btw:




drwx------   7 faux     faux         4096 Dec 12 04:00 .



drwxr-x--x  18 0        adm          4096 Oct 21 19:17 ..



-rw-------   1 faux     faux            0 Oct 19 01:28 .ICEauthority



-rw-------   1 faux     faux          110 Dec 12 04:00 .Xauthority



-rw-------   1 faux     faux          103 Dec 12 04:04 .bash_history



-rw-r--r--   1 faux     faux           24 Jan  5  2004 .bash_logout



-rw-r--r--   1 faux     faux          191 Jan  5  2004 .bash_profile



-rw-r--r--   1 faux     faux          124 Jan  5  2004 .bashrc



drwx------   3 faux     faux         4096 Oct 19 01:28 .kde



-rw-r--r--   1 faux     faux          141 May 15  2001 .mailcap



drwxrwxr-x   2 faux     faux         4096 Oct 19 01:27 .qt



-rw-r--r--   1 faux     faux         3729 Dec 10  2003 .screenrc



drwxr-xr-x   2 faux     faux         4096 Oct 19 00:54 public_html



drwx------   2 faux     faux         4096 Oct 19 01:27 tmp



drwxr-xr-x  18 faux     faux         4096 Dec 28 04:43 www







.kde:



drwx------   3 faux     faux         4096 Oct 19 01:28 .



drwx------   7 faux     faux         4096 Dec 12 04:00 ..



drwx------   7 faux     faux         4096 Oct 19 01:28 share







.kde/share:



drwx------   7 faux     faux         4096 Oct 19 01:28 .



drwx------   3 faux     faux         4096 Oct 19 01:28 ..



drwx------   2 faux     faux         4096 Oct 19 01:28 applnk-mdk



drwx------   2 faux     faux         4096 Oct 19 01:28 config



drwx------   2 faux     faux         4096 Oct 19 01:28 mimelnk



drwx------   2 faux     faux         4096 Oct 19 01:28 services



drwx------   2 faux     faux         4096 Oct 19 01:28 servicetypes







.kde/share/applnk-mdk:



drwx------   2 faux     faux         4096 Oct 19 01:28 .



drwx------   7 faux     faux         4096 Oct 19 01:28 ..







etc.









This doesn't work, either.


Edit: Typo. Oops.