Re: Determining if a file is local
Re: Determining if a file is local
- Subject: Re: Determining if a file is local
- From: Terry Lambert <email@hidden>
- Date: Thu, 25 Jun 2009 14:42:39 -0700
On Jun 25, 2009, at 12:03 PM, Tim Murison wrote:
Hi,
I'm trying to determine whether a given file is mounted on a local
drive, or
a network drive.
I've been using statfs64(), checking f_flags & MNT_LOCAL. This seems
to work
in most cases, but it turns out that if I mount a dmg from a network
drive,
f_flags says it is local.
Does anyone know of a way to determine if a file inside a mounted
dmg is
ultimately local or remote?
Recursively ascend the mount list until you hit / or a network drive.
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden