March 23, 2009 Tango ftp module | ||||
---|---|---|---|---|
| ||||
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? |
June 10, 2009 Re: Tango ftp module | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | 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.
|
Copyright © 1999-2021 by the D Language Foundation