[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager Problem

From: Richard Frith-Macdonald
Subject: Re: NSFileManager Problem
Date: Wed, 22 Oct 2003 09:55:12 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031010 Debian/1.4-6

S.B., Vaitheeswaran wrote:

Hi all,
I am having a strange problem, [NSFileManager isReadableFileAtPath:aPath]/ /returns NO though the file in "aPath" is present and is readable. This problem is not consistent it is very erratic. Any pointers ?

I don't know what system you are running on (is it windows), but the unix source code is a simple use of the access() system call and it's hard to see how that can go wrong (though I'm not sure what isReadableFileAtPath: *should* do ... for setuid programs ... check access for the real user id as it does now, or check access for the effective user id by using fstat or similar). If it's windows, it may be that the call being used (GetFileAttributes) is not reliable for our purpose and we should be using some other call ... I don't know windows at all well.

Can you supply the source code for a testcase illustrating the problem so I can run it under debug and see what's happening?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]