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

Re: File Size in Cocoa/Java - Resource and data fork


  • Subject: Re: File Size in Cocoa/Java - Resource and data fork
  • From: Charles Bennett <email@hidden>
  • Date: Mon, 03 Jun 2002 12:23:40 -0400

email@hidden wrote:
>
> 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?).

ls -al file.doc/rsrc


> 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?

That's all you get..

chuck

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

--
UPS Management software for OS X
http://www.powerguardian.com
_______________________________________________
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.

References: 
 >File Size in Cocoa/Java - Resource and data fork (From: email@hidden)

  • Prev by Date: File Size in Cocoa/Java - Resource and data fork
  • Next by Date: Re: Mouse events inside a cell
  • Previous by thread: File Size in Cocoa/Java - Resource and data fork
  • Next by thread: Is there a setting in and application bundle so icon will not show in taskbar.
  • Index(es):
    • Date
    • Thread