public IDirectoryInfo CreateSubdirectory(string path) { if (path.IndexOf("\\", StringComparison.Ordinal) < 0) { var subDir = new LibraryDirectory { DirectoryName = path, ParentId = _directory.Key }; var info = new LibraryDirectoryInfo(_client, _formMode, this, subDir); info.Save(null); if (_directories != null) { _directories.Add(info); } return(info); } throw new NotSupportedException(); }
public IDirectoryInfo[] GetDirectories() { return(_directories ?? (_directories = new[] { new AttachmentDirectoryInfo(_client, _formMode, this) } .Concat(LibraryDirectoryInfo.GetDirectories(_client, _formMode, this, "0")) .ToArray())); }