Quote: 1. Using an FTP client that does support this.
2. Creating your own FTP client to support this.
3. Trying to go "real deep" into the socket code and building your own interruptable method of getting the data.
or 4) The option I have in place already, which is to supply a hyperlink to the file as a line displayed to the user to download him/herself. Simple solutions before coding a new client. Also interesting to note that you are supplying suggestions on a forum for a language you admitted to not knowing on a seperate board.
Quote: If you mean by "download a file" to get one from the web, then you need to allow LuaSocket, which has provision for network access.
That was my original plan, but I was wondering how hard it would be to tell if the file is taking a long time to download.
Quote: If you mean to read a disk file, you would need to enable the IO library. Conceivably, allowing read-only IOs would have been reasonably safe, however there are various ways files can be opened, and the difference between reading and writing is simply in an argument to the file open, so it was safer to disallow all file IO
Well, the whole idea is to download a file, and then read it at the start of each session. I know IO permissions would have to be set, and I could probably just get away with not having the download done by the script and just let the script read the file. I figured out how to allow read and write, but I was wondering how to get it to just allow reading. |