public void AllowAccess(string path) { if (path == null) { throw new ArgumentNullException("path"); } if (!path.StartsWith("~/")) { throw new ArgumentException(string.Format("The path \"{0}\" is not application relative. It must start with \"~/\".", path), "path"); } paths.Add(path); }
void CopyRawFileToOutput(string sourceFilename) { var absoluteSourceFilename = AbsoluteSourcePath(sourceFilename); if (!File.Exists(absoluteSourceFilename)) { return; // TODO: Log this as a warning? } if (copiedFilenames.Contains(absoluteSourceFilename)) { return; } var outputPath = CreateOutputFilename(sourceFilename); CopyFile(absoluteSourceFilename, outputPath); copiedFilenames.Add(absoluteSourceFilename); }