Esempio n. 1
0
 /// <summary>
 /// Gets meta data about a given file which is identified
 /// by its path within the file system.
 /// </summary>
 /// <param name="virtualFilePath">Path information that allows
 /// the provider to identify the requested resource.</param>
 /// <returns>A <see cref="VirtualFileInfo"/> instance which provides
 /// meta data about the file.</returns>
 /// <exception cref="VirtualResourceNotFoundException">If the file cannot
 /// be found.</exception>
 /// <exception cref="ResourceAccessException">In case of invalid or prohibited
 /// resource access.</exception>
 public override VirtualFileInfo GetFileInfo(string virtualFilePath)
 {
     return(SecureFunc(FileSystemTask.FileInfoRequest, () => OperationService.GetFileInfo(virtualFilePath),
                       () => String.Format("Could not get meta data for file [{0}].", virtualFilePath)));
 }