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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/nelsongreg%40gmail.com
> 
> This email sent to nelsong...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to