• 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: iDisk access in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iDisk access in Cocoa


  • Subject: Re: iDisk access in Cocoa
  • From: Vince DeMarco <email@hidden>
  • Date: Tue, 19 Feb 2002 10:59:53 -0800

On Tuesday, February 19, 2002, at 01:59 AM, M Ramachandra Acharya wrote:

Hi Vince

But when I use finder and check the properties of the volume by selecting
it
and pressing 'Command + I', the info widow says that the 'Format' is
'WebDAV'. I thought of using this as the unique key, but alas! could not
find any function to get this info.


What you can do is use the fstat function

ib the structure it returns is the file sysyem type.


I just tried this. I use the function 'fstat' defined in 'stat.h'.
It fills in a structure which has lot many fields defined (struct stat).

To me it appeared that I can use the "st_ino" field of this structure. It is
the inode's number for the file. After doing some tests, I found that for
iDisk, it remains 3 and for any other volumes (local, network, CD ROM,
volumes mounted from my laptop in FireWire mode) it remains 2.

Is this how I should be doing it or do you think I should treat the
structure in a different way. Actually I am not sure about this field. Can
you pl. point me to some documents which might explain these fields in
detail?


Sorry i meant to say use statfs(path, struct statfs *buf)

so do this

struct stafs buf;

if (statfs("/Volumes/MyDisk",&buf) < 0){
perror("statfs failed");
}

then here look at

buf.f_fstypename

sorry about that, i've been kind of sick, so i typed the wrong thing for you.

vince
_______________________________________________
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: iDisk access in Cocoa
      • From: M Ramachandra Acharya <email@hidden>
References: 
 >Re: iDisk access in Cocoa (From: M Ramachandra Acharya <email@hidden>)

  • Prev by Date: NSQueue equivalent?
  • Next by Date: Re: Dockling Menu Questions
  • Previous by thread: Re: iDisk access in Cocoa
  • Next by thread: Re: iDisk access in Cocoa
  • Index(es):
    • Date
    • Thread