• 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
Detecting File Existence over FTP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Detecting File Existence over FTP
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Core Data: Instantiating linked entities
  • Next by Date: Get confused with initWithData:encoding:
  • Previous by thread: Re: Adding PDFPage to PDFDocument crashes
  • Next by thread: Re: Detecting File Existence over FTP
  • Index(es):
    • Date
    • Thread