check if folder is share and set to folder access rules - everyone
<p>How do I check if a folder is shared? This is my code to set access rules for folder -  </p>

<pre><code> FileSystemSecurity fs = File.GetAccessControl(FilePath);
 fs.AddAccessRule(new FileSystemAccessRule("everyone", 
            FileSystemRights.ReadPermissions, AccessControlType.Deny));
 File.SetAccessControl(FilePath, fs);
</code></pre>

<p>"Everyone" gets only read Permission</p>
