• 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: How to know a file is busy(read/write)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to know a file is busy(read/write)?


  • Subject: Re: How to know a file is busy(read/write)?
  • From: Horn Deric <email@hidden>
  • Date: Thu, 10 Jan 2008 19:08:18 -0800

What are you trying to do with the file?

Even if there were a perfect API to provide detailed status of a file, that status can change between the time you check and act on the file.

In most situations I encounter the real solution is to act on the file and then handle the error case at that time.

Deric Horn
Application Technologies Evangelist
Apple Worldwide Developer Relations
email@hidden

On Jan 10, 2008, at 6:24 PM, shengjun_guan (管聲俊) wrote:

Deall all;
I want to know a file is busy before i use it. For example, when you clean Tash, and some file is using, sysytem will tell you can't remove it. I used NSFileBusy(in NSFileManager), but it didn't succseful. Waiting for you help. Thanks a lot.
_______________________________________________


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


  • Follow-Ups:
    • RE: How to know a file is busy(read/write)?
      • From: shengjun_guan (管聲俊) <email@hidden>
References: 
 >How to know a file is busy(read/write)? (From: shengjun_guan (管聲俊) <email@hidden>)

  • Prev by Date: Re: Controlling field editor for an outline view
  • Next by Date: converting from Big 5 and GuoBiao encodings
  • Previous by thread: How to know a file is busy(read/write)?
  • Next by thread: RE: How to know a file is busy(read/write)?
  • Index(es):
    • Date
    • Thread