• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting File Existence over FTP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting File Existence over FTP


  • Subject: Re: Detecting File Existence over FTP
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 2 Sep 2008 21:53:32 +0100

It's not exactly a direct answer to your question, but have you considered looking into using ConnectionKit instead for FTP access? It's Objective-C and fuller-featured than CoreFoundation's FTP code.

Mike.

On 2 Sep 2008, at 21:21, Wyatt Webb wrote:

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

_______________________________________________

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


References: 
 >Detecting File Existence over FTP (From: Wyatt Webb <email@hidden>)

  • Prev by Date: Re: Declaring multidimensional arrays in obj-c
  • Next by Date: Re: textfield validation / formatter: emailaddress
  • Previous by thread: Detecting File Existence over FTP
  • Next by thread: Get confused with initWithData:encoding:
  • Index(es):
    • Date
    • Thread