FTP Download progress

I have been doing some digging but seem to be drawing blanks over whether or not it is possible to get the progress of a ftp file download using corona/lua.  Is this a possibility now?

This might help:

http://docs.coronalabs.com/api/library/network/request.html#download-file-with-progress-updates

That looks to be for http though not ftp.  Thanks anyway though.

Does it not work the same over FTP?

I’m pretty sure it doesn’t as there is nowhere to add login/password data.  Worth a try though I guess for what it takes.

Well, logging in with username and password is something completely different from getting progress.

You can provide a username/password for an FTP connection in a URL, like so:

ftp://username:password@hostname/

Are you sure corona’s network functions support ftp?

The network.* API’s are http: and https: only.  There is some code in the old code repository that does FTP.  Since it’s 3rd party code, we really can’t help you much with it, but it is Lua and you might be able to adapt to to provide status updates.

This might help:

http://docs.coronalabs.com/api/library/network/request.html#download-file-with-progress-updates

That looks to be for http though not ftp.  Thanks anyway though.

Does it not work the same over FTP?

I’m pretty sure it doesn’t as there is nowhere to add login/password data.  Worth a try though I guess for what it takes.

Well, logging in with username and password is something completely different from getting progress.

You can provide a username/password for an FTP connection in a URL, like so:

ftp://username:password@hostname/

Are you sure corona’s network functions support ftp?

The network.* API’s are http: and https: only.  There is some code in the old code repository that does FTP.  Since it’s 3rd party code, we really can’t help you much with it, but it is Lua and you might be able to adapt to to provide status updates.