Re: Retrieving file/folder sizes
Re: Retrieving file/folder sizes
- Subject: Re: Retrieving file/folder sizes
- From: cricket <email@hidden>
- Date: Sat, 8 May 2004 18:44:57 -0700
You found the right class and method, now read the docs. :)
-----------------
- (NSDictionary *)fileAttributesAtPath:(NSString *)path
traverseLink:(BOOL)flag
Returns an NSDictionary containing various objects that represent the
POSIX attributes of the file specified at path. The keys in the
dictionary are described in the Constants section.
If flag is YES and path is a symbolic link, the attributes of the
linked-to file are returned; if the link points to a nonexistent file,
this method returns nil. If flag is NO, the attributes of the symbolic
link are returned.
-----------------
"Best way" certainly depends on a lot of factors, but using this method
is a fine way to retrieve file sizes.
- cricket
On May 8, 2004, at 6:12 PM, email@hidden wrote:
>
Greetings,
>
>
I'm using NSFileManager's fileAttributesAtPath:@"" traverseLink:YES
>
to retrieve file/folder sizes my questions are what exactly does
>
traverse link do and is the the best way to retrieve sizes?
>
_______________________________________________
>
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.
>
>
---------->
Penguin obesity is a black and white issue.
_______________________________________________
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.