public override string AddContent(string sourcePath) { if (!FileMap.ContainsKey(sourcePath)) { string destFileName = GenerateContentFileName(sourcePath); AddContent(sourcePath, destFileName); return(sourcePath); } else { return(sourcePath); } }
public override string AddContent(string sourcePath) { if (!FileMap.ContainsKey(sourcePath)) { string destFileName = GenerateContentFileName(sourcePath); AddContent(sourcePath, destFileName); return(Path.Combine(ExecutionContext.PACKAGE_CONTENT_TAG, destFileName)); } else { return(Path.Combine(ExecutionContext.PACKAGE_CONTENT_TAG, FileMap[sourcePath])); } }
public override string AddContent(string sourcePath) { string result; if (!FileMap.ContainsKey(sourcePath)) { string destFileName = GenerateContentFileName(sourcePath); FileMap.Add(sourcePath, destFileName); result = destFileName; } else { result = FileMap[sourcePath]; } return(Path.Combine(ExecutionContext.PACKAGE_CONTENT_TAG, result)); }
public override bool FileExists(string virtualPath) { return(FileMap.ContainsKey(NormalizeVirtualPath(virtualPath))); }
public bool HasFilename(string filename) { return(FileMap.ContainsKey(filename)); }