• 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
Help : File size questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help : File size questions


  • Subject: Help : File size questions
  • From: Peter <email@hidden>
  • Date: Thu, 15 Aug 2002 22:28:44 +0800

Hello,

Recently stumble a very big file (about 3.3 GB), however I keep getting incorrect file size. I supposed I have hit 32 bit signed int limit. By looking the snippet below, how do I over come this problem.

fattrs = [fileMgr fileAttributesAtPath:pathStr traverseLink:YES];
filesize = [[fattrs objectForKey:NSFileSize] intValue];

A few questions,

1) On the doc. NSFileSize returns NSNumber, what is biggest number will it hold ?

2) What is the biggest file size for HFS+ and UFS ?

3) What about stat() function, does it return file size value greater than 4 billion ( bigger than unsigned long) ?

Thanks.

Peter.
_______________________________________________
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.

  • Prev by Date: Re: Getting classes from bundles in an array
  • Next by Date: Re: Help with offscreen drawing
  • Previous by thread: Re: URL parsing
  • Next by thread: action cells and outline views
  • Index(es):
    • Date
    • Thread