AI OnAI Off
private void CreateDocumentDirectory(Workroom workroom)
{
string newWorkroomName = WorkroomName.Text;
string newDirectoryName = newWorkroomName;
int i = 0;
while(FileRoot.GetSubdirectory(newDirectoryName) != null)
newDirectoryName = newWorkroomName + (++i).ToString();
UnifiedDirectory newDir =
FileRoot.CreateSubdirectory(newDirectoryName);
newDir.ACL.IsInherited = false;
newDir.ACL.Clear();
newDir.ACL.Save();
workroom.FileRoot = newDir.Path;
}