protected override void OnCreate(AbsPath path) { if (path.Extension == "" || allowedExtensions.Contains(path.Extension)) { RelPath relPath = path.ReplaceAsRelativePath(srcFolder); AbsPath destPath = destFolder.Combine(relPath); Console.WriteLine($"create '{relPath}' (from '{path.PathStr}' to '{destPath.PathStr}')"); path.CopyToFiltered(destPath, allowedExtensions); } }