Detecting File Existence over FTP
Detecting File Existence over FTP
- Subject: Detecting File Existence over FTP
- From: Wyatt Webb <email@hidden>
- Date: Tue, 2 Sep 2008 13:21:55 -0700
Hi all,
I'm still getting comfortable with NSURLConnection and the related
classes as well as the CFStream classes for reading and writing files
via FTP. I think I've got it down, now, but I have one hiccup I'd like
to solve. What's the best way to see if a file already exists on the
remote server? I'd like to let the user confirm the overwrite before
just blasting it away.
I've tried creating and opening a stream with
CFReadStreamCreateWithFTPURL and that doesn't seem to act differently
if the file exists or not. It seems silly to open the file, wait for
it to open, and then start reading just to discover if anything is
there. Is there an easier way I'm missing?
Thanks,
Wyatt
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden