示例#1
0
 /// <summary>
 /// Gets the parent folder of a given file system resource.
 /// </summary>
 /// <param name="childFilePath">The qualified path (<see cref="VirtualResourceInfo.FullName"/>
 /// of a file that is used to resolve the parent folder.</param>
 /// <returns>The parent of the file.</returns>
 /// <exception cref="ArgumentNullException">If <paramref name="childFilePath"/>
 /// is a null reference.</exception>
 /// <exception cref="VirtualResourceNotFoundException">If the file that is represented
 /// by <paramref name="childFilePath"/> does not exist in the file system.</exception>
 /// <exception cref="ResourceAccessException">In case of an invalid or prohibited
 /// resource access.</exception>
 public override VirtualFolderInfo GetFileParent(string childFilePath)
 {
     return(SecureFunc(FileSystemTask.FileParentRequest, () => OperationService.GetFileParent(childFilePath),
                       () => String.Format("Could not get meta data about parent folder of file [{0}].", childFilePath)));
 }