• 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: Detecting shared folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Detecting shared folders
      • From: Leo <email@hidden>
References: 
 >Detecting shared folders (From: Leo <email@hidden>)

  • Prev by Date: Re: Help with Basics (Was: help with bindings)
  • Next by Date: define IBOUtlet connection in design time
  • Previous by thread: Re: Detecting shared folders
  • Next by thread: Re: Detecting shared folders
  • Index(es):
    • Date
    • Thread