Skip navigation.
 
mlRe: How to know a file is busy(read/write)?
FROM : Horn Deric
DATE : Fri Jan 11 04:08:18 2008

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_removed>

On Jan 10, 2008, at 6:24 PM, shengjun_guan (ºÞÁn«T) 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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlHow to know a file is busy(read/write)? shengjun_guan (???… Jan 11, 03:24
mlRe: How to know a file is busy(read/write)? Horn Deric Jan 11, 04:08
mlRE: How to know a file is busy(read/write)? shengjun_guan (???… Jan 11, 06:19
mlRe: How to know a file is busy(read/write)? Alastair Houghton Jan 11, 15:53