• 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: UFS can't handle creation date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: UFS can't handle creation date (From: Development <email@hidden>)

  • Prev by Date: Re: NSView coordinate System
  • Next by Date: How do I remove all formatting (setUsesRuler:NO does not work) from an NSTextView?
  • Previous by thread: Re: UFS can't handle creation date
  • Next by thread: Re: UFS can't handle creation date
  • Index(es):
    • Date
    • Thread