Page 1 of 1
Cannot list files on Windows CE FTP Server
Posted: Fri Oct 02, 2009 3:47 am
by coder_infidel
Hi,
I tried to use AndFTP to connect to an Windows CE 4.2-based embedded device running the FTP server that Microsoft provides but I get an empty directory listing. Other FTP clients work fine, including ftp.exe, Windows Explorer and FileZilla.
Luke
Re: Cannot list files on Windows CE FTP Server
Posted: Sun Oct 04, 2009 1:41 pm
by support
Is there a way for us to access your FTP server on WindowsCE from here?
So we can reproduce the problem and see how to fix it.
Re: Cannot list files on Windows CE FTP Server
Posted: Mon Oct 05, 2009 2:09 am
by coder_infidel
No, but I can show you a directory listing. On a Windows Server FTP server the directory listing looks like:
Code: Select all
150 Opening ASCII mode data connection for /bin/ls.
10-13-08 12:00PM 96705 file1.dat
08-31-09 04:41PM 261120 file2.dat
04-30-09 03:29AM 4702208 file3_with_quite_a_long_filename.dat
10-05-09 10:12AM <DIR> subdirectory
The Windows CE listing is slightly different:
Code: Select all
150 File status okay; about to open data connection.
10-05-09 02:13 <DIR> subdirectory
10-05-09 02:06 261120 file2.dat
10-05-09 02:06 96705 file1.dat
10-05-09 02:06 4702208 file3_with_quite_a_long_filename.dat
Does that help at all?
(edit: show how a subdirectory is listed too)
Re: Cannot list files on Windows CE FTP Server
Posted: Mon Oct 05, 2009 8:54 am
by coder_infidel
Also, the output of the SYST command on Windows Server is:
215 Windows_NT
Compared to Windows CE:
215 Windows_CE version 4.20.
I think it would be better if you could parse the listing in a way that just works for both, but if you do need to decode the listing differently based on the output of SYST then I suggest that you just check for the substring "Windows_CE" and ignore the version part.