• 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: Minor filesize differences between "info" inspector and NSFileManager on SOME files.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minor filesize differences between "info" inspector and NSFileManager on SOME files.


  • Subject: Re: Minor filesize differences between "info" inspector and NSFileManager on SOME files.
  • From: Rosyna <email@hidden>
  • Date: Fri, 10 May 2002 20:29:17 -0700

The .doc file would probably have a resource fork. And possibly that resource fork contains only a 'usro' resource The terminal and by extension cocoa cannot handle resource forks reliably, completely ignoring their existence. If you want the real file size, you need to use the carbon FSGetCatalogInfo function instead.

Ack, at 5/10/02, Charles Bennett said:

I have an odd little file size quirk that I wonder if anyone can shed some light on.

I have four files in a directory.

Inspecting them with the Finder's Info panel I see
file 1 -- 7,774 (bytes)
file 2 -- 49,348 (bytes)
file 3 -- 169,472 (bytes)
file 4 -- 17,408 (bytes)

But looking at the same files programatically via the FileManager I see
file 1 -- 7,774 (bytes)
file 2 -- 49,152 (bytes) << it's different. but just a little. (It's a Word .doc file)
file 3 -- 169,472 (bytes)
file 4 -- 17,408 (bytes)

The odd thing is that the files before and after agree with the "info".

doing an ls -al on the directory
agrees with the FileManager so it's "info" that's out, but I don't understand why.

It's no big deal. I was just calculating how much I could fit on a CD
and noticed that my calculations didn't match the Finder.

Side Note: I tried to search mamasan but can only see the first page of results
the Next arrow, or direct page selection yield

"You don't have permission to access /search/ on this server"

it shouldn't offer if it doesn't really mean it :-)

--


Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People
---

Please include any previous correspondence in replies, it helps me remember what we were talking about. Thanks.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Minor filesize differences between "info" inspector and NSFileManager on SOME files.
      • From: Charles Bennett <email@hidden>
References: 
 >How to implement drag-drop onto application icon ( e.g. a droplet) (From: Kirk Kerekes <email@hidden>)
 >Minor filesize differences between "info" inspector and NSFileManager on SOME files. (From: Charles Bennett <email@hidden>)

  • Prev by Date: Minor filesize differences between "info" inspector and NSFileManager on SOME files.
  • Next by Date: Re: CICN resource into NSImage?
  • Previous by thread: Minor filesize differences between "info" inspector and NSFileManager on SOME files.
  • Next by thread: Re: Minor filesize differences between "info" inspector and NSFileManager on SOME files.
  • Index(es):
    • Date
    • Thread