Re: CFFTP CHMOD
Re: CFFTP CHMOD
- Subject: Re: CFFTP CHMOD
- From: Frederick Cheung <email@hidden>
- Date: Tue, 18 Dec 2007 08:52:06 +0000
On 18 Dec 2007, at 02:14, Ryan Joseph wrote:
Interesting, I have never looked at the CFSocketStream API before.
At first glance it appears I will be calling
CFStreamCreatePairWithSocketToCFHost (can CFHost even describe a FTP
server?), opening the write and read streams, then sending raw text
FTP protocol messages with CFWriteStreamWrite. does that sound about
right? If that's the case then CFFTP is not implemented on a much
higher level, and makes it impossible to access a more robust list
of FTP features, in which case it's not really a smart API to be
using except for the simplest of applications.
That's what I ended up doing. And no need to guess about cfftp since
the source code is available.
Fred
And thank you for the notes about FTP URLS. I KNEW there had to be a
standard method for getting that information. That little note
should be included on the web site.
On Dec 18, 2007, at 2:36 AM, Mark Pauley wrote:
I don't believe that this is implemented in CFFTP as of now. If
you would like to see it, file a feature request via bugweb :)
The CFFTP semantics are a bit limited: you can either create a
readstream to suck a file down or you can create a writestream to
push a file to the server or you can list a directory, that's about
it. There is no guarantee that your readstream has a connected
socket below it that is valid or open to the server at any point in
the process (i.e. we aren't telling you when the socket is valid
and when the socket is closed).
In this case, your best bet is to open a CFSocketStream pair
directly to the endpoint, use CD's to get to where you want, and
CHMOD the file you care about.
_Mark
On Dec 16, 2007, at 10:55 PM, Ryan Joseph wrote:
I couldn't find this seemingly commonly question on the archives
or mentioned in the docs. Is setting the file permissions (CHMOD)
possible with CFFTP? If I were to obtain the CFSocketRef could I
use CFSocketSendData to send a direct message to the server?
Regards,
Josef
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Regards,
Josef
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden