Re: AppleDouble format
Re: AppleDouble format
- Subject: Re: AppleDouble format
- From: Rainer Brockerhoff <email@hidden>
- Date: Mon, 5 Nov 2001 20:01:11 -0200
>
Date: Mon, 5 Nov 2001 13:25:13 -0800
>
From: Vince DeMarco <email@hidden>
>
>
On Monday, November 5, 2001, at 11:46 am, Charles Srstka wrote:
>
>
> Does anyone know of a way to programmatically decode those ._filename
>
> AppleDouble files that UFS uses into actual HFS resource forks?
>
>
I don't know this one.
Opening the resource fork normally (with the calls in "Files.h" or "Resource.h") will give you this transparently. You don't need to know whether this is a UFS volume.
>
> Also, is it possible to determine the format of a drive programmatically?
>
>
>
>
use statfs()
>
...
>
look at the f_fstypename field
You can also call FSGetCatalogInfo on the file to get the "volume" field, pass this to FSGetVolumeInfo and then check the returned "filesystemID" field. This will contain '\000\000cu' for UFS.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"Originality is the art of concealing your sources."
http://www.brockerhoff.net/ (updated Oct. 2001)