Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3k views
in .NET FTP by (1.8k points)
hi,

I'm wondering if it is possible to do the same as GetFileInfos(pathToDir, recursiveBool) in an async way.

It's especially the recursive part that would be nice.
The library could for example implement a connection pool and make the recursive listing run in parallell (async).

Boris

4 Answers

0 votes
by (161k points)
ExFTPConnection (see edtFTPnet/Express) has async methods corresponding to almost all synchronous methods, including GetFIleInfos.

It does not, however, have an async method for the GetFileInfos(pathToDir, recursiveBool) method which is recursive. I suppose it could be easily added if you require the recursive flag to be true.
0 votes
by (1.8k points)
Yes, I know about the Begin[MethodName]() functions.
But indeed, it is the recursive one I'm after.

So, currently it is not supported yet?
That's a bummer.

Would it be possible to add this functionality?
I don't know if the transaction is finished yet (my boss handles that), but we will have a paid license any time now.
As long as I didn't get the key, I'm working with the demo version.
I assume this doesn't make any difference, right?

Thx for the reply anyway.
0 votes
by (51.2k points)
Hi Boris

We will add the asynchronous method you are after. Please e-mail support@enterprisedt.com so that we can send you download instructions for the patch.

- Hans (EnterpriseDT)
0 votes
by (1.8k points)
Thanks for the update.
But it seems something is going wrong. The callback method never gets called.

After checking the log file, it seems the method keeps calling the List cmd for the same dir over and over again.
Maybe because the first dir in the list is the “.” (current) dir and it moves to this dir, thus listing the current dir again?
It’s just a thought.
To be sure I gave the method enough time, I fired it and at the same time did the same task manually with FileZilla.
Also, it seems that before each listing cmd a new connect cmd is fired.
Is this necessary? I’m not an ftp expert, but I figured it would maybe be worth checking since it could mean a performance improvement if this could be left out.

I mailed the log file.

Categories

...