fileAttributesAtPath, NSFileSize problems
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?