示例#1
0
 internal LocalFileContent(LocalFile file, LocalFileSystem localFs)
 {
     LocalFile = file;
     LocalFs   = localFs;
     try {
         LocalFileInfo = new FileInfo(LocalFile.LocalName);
     } catch (Exception ex) {
         throw new Exception(
                   String.Format("Cannot retrieve file info ({0}): {1}", LocalFile.LocalName, ex.Message), ex);
     }
 }
示例#2
0
        public IFileObject ResolveFile(string name)
        {
            LocalFile file = new LocalFile(NormalizeLocalName(name), this);

            return(file);
        }