• 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
fileAttributesAtPath, NSFileSize problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fileAttributesAtPath, NSFileSize problems


  • Subject: fileAttributesAtPath, NSFileSize problems
  • From: email@hidden
  • Date: Sun, 19 Aug 2001 17:39:01 -0700

I am trying to get a file's size with NSFileManager using fileAttributesAtPath and NSFileSize (you know if you ever used it).

It returns the number of byte in the file, but it gives me the wrong number. I have a 8 KB text file, but when I divide the bytes by 1024, I get .10392 or something like that.

What am I missing here?


  • Follow-Ups:
    • Re: fileAttributesAtPath, NSFileSize problems
      • From: Richard Schreyer <email@hidden>
  • Prev by Date: Re: libpcap in Cocoa
  • Next by Date: Re: fileAttributesAtPath, NSFileSize problems
  • Previous by thread: Re: Continious/Auto-repeat Buttons & Steppers leak 30Kb+ per second!!?
  • Next by thread: Re: fileAttributesAtPath, NSFileSize problems
  • Index(es):
    • Date
    • Thread