Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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;
}