Separate names with a comma.
Discussion in 'Mac Programming' started by menziep, Jan 11, 2007.
How can i set up my application to read and write ftp files, like you can a view site in WebView
You can't do this in IB. You need to write an FTP client.
Thanks, is there anywhere i can get the code, for a simple ftp client.
I wrote my own FTP client code at one point. It's horrible. I'd do a Google search and see if anyones written any open source FTP objects.
CURL is good. Released under the LGPL so you can use it in commercial products without opening the entire source. Its stable and powerful. I seem to remember seeing a cocoa wrapper for it somewhere. Maybe source forge.
There 's an open source third party bit of code called the connection framework that does a ton of stuff - but it's hardly newbie territory
That looks like a pretty cool piece of code. The interface they expose is quite similar to the internal one I had for doing FTP (I was writing a tool to sync two directories). The issue I had was parsing the return of an ls command as different servers use different formats!
You may want to take a look at the OmniGroup's Omni Web Framework: http://www.omnigroup.com/developer/sourcecode/.
Apparently Sandvox uses it.
I remembered that the FTP stuff I wrote was from an older iteration. I ended up using some code called FTPConnection. It used to be available here and was written by Greg Hulands. iirc I fixed a couple of minor bugs I had found.
Once I get home I will post zip of that code as it worked pretty well and was small and easy to understand...
Edit: actually I won't bother. He's one of the contributors to Connection Kit and FTPConnection is in there