www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Tango ftp module

reply Trass3r <mrmocool gmx.de> writes:
Has anyone ever tried the tango ftp code?
Nothing really works for me, even for simple cases.

For example, when using ls() it gets stuck in parseMlstLine() cause the 
exception
throw new FTPException("CLIENT: Bad syntax in MLSx response", "501");
doesn't get caught.
Thus the else branch isn't executed:
         // If it passed, parse away!
         if (mlsd_success)
		[...]
         // Fall back to LIST.
         else
             return this.sendListCommand(path);

and ls() doesn't work at all.


Is there any working example at all?
Mar 23 2009
parent viktor <vikkrej09 yahoo.com> writes:
Trass3r Wrote:

 Has anyone ever tried the tango ftp code?
 Nothing really works for me, even for simple cases.
 
 For example, when using ls() it gets stuck in parseMlstLine() cause the 
 exception
 throw new FTPException("CLIENT: Bad syntax in MLSx response", "501");
 doesn't get caught.
 Thus the else branch isn't executed:
          // If it passed, parse away!
          if (mlsd_success)
 		[...]
          // Fall back to LIST.
          else
              return this.sendListCommand(path);
 
 and ls() doesn't work at all.
 
 
 Is there any working example at all?
tango ftp/http is broken in my opinion, not thread-safe. better go with libcurl.
Jun 09 2009