• 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: Retrieving file/folder sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Retrieving file/folder sizes (From: email@hidden)

  • Prev by Date: Retrieving file/folder sizes
  • Next by Date: Re: Pre-defined methods - documentation?
  • Previous by thread: Retrieving file/folder sizes
  • Next by thread: File Size Code
  • Index(es):
    • Date
    • Thread