NSFileManager
NSFileManager
- Subject: NSFileManager
- From: Clark Mueller <email@hidden>
- Date: Fri, 22 Feb 2002 20:04:16 -0700
Hi. I have two questions about NSFileManager.
When I use fileAttributesAtPath:path traverseLink:NO, I get, in return,
and NSDictionary containing various attributes. Two of these attributes
are of interest to me at the moment: NSFileSize, NSFilePosixPermissions.
Both of these keys return an NSNumber, which I then in turn place into
an NSTextField outlet.
My problem with NSFilePosixPermissions is that the values it is
returning are making no sense. I get numbers like 1024 and 482 and
things like that, which aren't even valid POSIX permission numbers,
right? (Check me on that last bit, because that may be my problem.) I'm
expecting to see no digits higher than 7, correct? I had initially
thought that my problem was using the wrong data type, or retrieving the
value incorrectly, but no matter how I get it or use it, I get these
kinds of numbers.
My question about NSFileSize is similar, and I've been thinking these
may be related. Likewise, I find that these values are sometimes
returned correctly, sometimes not. Largely, the problem seems to be with
bundles or with directories and mount points. Do I need to call
-[NSFileManager fileAttributesAtPath:path traverseLink:YES] in order to
work through the tree?
TIA.
---
Clark Mueller
email@hidden
---
http://www.finikin.com/
I resolve to stop procrastinating...starting tomorrow.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.