public IEnumerable <IncludedFile> LoadStaticFilenames(string folder) { CheckFolder(folder, "StaticFiles"); string filename = folder.PathSlash(ProjectSerialiserV1.StaticFilesDetailsFileName); if (controller.FileExists(filename) == false) { throw new FileNotFoundException(string.Format("Could not find Outputs file at path {0}", filename)); } if (controller.CanReadFile(filename) == false) { throw new IOException(string.Format("Cannot read from file {0}: Access Denied.", filename)); } string xml = controller.ReadAllText(filename); var files = ReadStaticFilesDetails(xml.GetXmlDocRoot()); SetFullFileNamesForIncludedFiles(files, folder); return(files); }