/// <summary> /// Processes a single template file /// </summary> private void ProcessTemplateFile(string filePath, string targetPath) { var finalFilePath = TransformToFinalPath(filePath, targetPath); var extension = _fileSystemAdapter.GetFileExtension(finalFilePath); if (MatchAnyExtension || _options.ContentFileExtensions.Contains(extension)) { TransformTemplateFile(filePath, finalFilePath); } else { _fileSystemAdapter.CopyFile(filePath, finalFilePath); } }
public void Store(string source, FileKind type) { var path = Path.Combine(StoragePath, GetFileNameForType(type)); _fileSystem.CopyFile(source, path, true); }