Пример #1
0
 /// <summary>
 /// Creates a new folder in the file system.
 /// </summary>
 /// <param name="virtualFolderPath">The qualified path of the folder to be created.</param>
 /// <returns>A <see cref="VirtualFileInfo"/> instance which represents
 /// the created folder.</returns>
 /// <exception cref="ArgumentNullException">If <paramref name="virtualFolderPath"/>
 /// is a null reference.</exception>
 /// <exception cref="ResourceAccessException">In case of invalid or prohibited
 /// resource access.</exception>
 /// <exception cref="VirtualResourceNotFoundException">If the designated parent
 /// folder does not exist.</exception>
 /// <exception cref="ResourceOverwriteException">If the folder already exists on the file
 /// system.</exception>
 public override VirtualFolderInfo CreateFolder(string virtualFolderPath)
 {
     return(SecureFunc(FileSystemTask.FolderCreateRequest, () => OperationService.CreateFolder(virtualFolderPath),
                       () => String.Format("Could not create folder [{0}] on file system.", virtualFolderPath)));
 }