Re: UFS can't handle creation date
Re: UFS can't handle creation date
- Subject: Re: UFS can't handle creation date
- From: Chris Ridd <email@hidden>
- Date: Fri, 20 Sep 2002 16:12:26 +0100
On 20/9/02 3:11 pm, Development <email@hidden> wrote:
>
Hi,
>
>
Am Freitag, 20.09.02 um 15:46 Uhr schrieb John Hvrnkvist:
>
>
>
>
> On Friday, September 20, 2002, at 03:22 PM, Development wrote:
>
>
>
>> I'm trying to copy some files from a source path to a destination
>
>> path.
>
>> If the items to copy already exist at the destination path, I want to
>
>> verify the creation dates.
>
>>
>
>
>
>
>
> Something like this:
>
> - (NSString*)fileSystemType:(NSString*)fileName
>
> {
>
> struct statfs fs_struct;
>
> statfs([fileName fileSystemRepresentation], &fs_struct);
>
> return [NSString stringWithCString:fs_struct.f_fstypename];
>
> }
>
>
Thank you for the fast reply!
>
>
Allthough, this code crashes my ProjectBuilder... the struct statfs
>
seems to be the bad guy.
>
>
Do I have to include something extraordinary other then carbon, cocoa,
>
foundation, etc?
Stat is a POSIX function, and if you do a "man stat" it will tell you what
you need to #include! (<sys/types.h> and <sys/stat.h>)
Not too extraordinary if you're used to POSIX, but perhaps extraordinary if
you're used to the convenience of Cocoa.
Cheers,
Chris
_______________________________________________
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.