• 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
File Size in Cocoa/Java - Resource and data fork
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File Size in Cocoa/Java - Resource and data fork


  • Subject: File Size in Cocoa/Java - Resource and data fork
  • From: email@hidden
  • Date: Mon, 03 Jun 2002 13:08:54 -0300
  • Organization: Perfil

Hello, I'm trying to get a file size via java/cocoa. IF i use
java.io.File.length() I get the data fork length (also, in the terminal
window, with an ls command i get the data fork. Can I get the resource
size in terminal window?).
I then tried NSFileWrapper and use regularFileContents() to obtain an
NSData and the ask the size but I again only get the data fork size.
Do you know how to get both, data and resource fork size?

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: File Size in Cocoa/Java - Resource and data fork
      • From: Charles Bennett <email@hidden>
  • Prev by Date: Re: Mouse events inside a cell
  • Next by Date: Re: File Size in Cocoa/Java - Resource and data fork
  • Previous by thread: Re: Mouse events inside a cell
  • Next by thread: Re: File Size in Cocoa/Java - Resource and data fork
  • Index(es):
    • Date
    • Thread