Re: Detecting shared folders
Re: Detecting shared folders
- Subject: Re: Detecting shared folders
- From: Greg Nelson <email@hidden>
- Date: Wed, 17 Nov 2010 00:01:24 -0500
Via the shell I can think of a couple ways to get the info:
If on a server:
sharing -l
Server or client
dscl . list /SharePoints
Take that list of share points and run this per sharepoint
dscl . read /SharePoints/<sharepoint name> directory_path
Hope this helps,
- Greg
On Nov 15, 2010, at 5:01 AM, Leo wrote:
> Hi,
>
> I wonder if it's possible to detect a shared folder? That is a folder that
> is shared via File Sharing.
>
> Am I missing something obvious?
>
> I couldn't find an appropriate folder attribute in either Cocoa or
> AppleScript. Or any other way to distinguish a shared folder from other
> folders.
>
> I also assume there must be a list of all shared folders in one of the Unix
> special directories. Or a way to retrieve it with a shell command. I did
> some extensive research, couldn't find anything.
>
> Any help would be appreciated!
>
> Thanks,
> Leo
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden