Skip to content

Commit

Permalink
only process *.dem files:
Browse files Browse the repository at this point in the history
  • Loading branch information
eisbaer66 committed Mar 30, 2017
1 parent cf97759 commit 38984a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PurgeDemoCommands/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ private static Command SetupCommand(Options options)
private static List<string> GetFiles(Options options)
{
return options.Files
.SelectMany(f => Directory.Exists(f) ? Directory.GetFiles(f) : new[] {f})
.SelectMany(f => Directory.Exists(f) ? Directory.GetFiles(f, "*.dem") : new[] {f})
.Where(f => f.EndsWith(".dem"))
.Where(f => !f.EndsWith(options.NewFilePattern + Path.GetExtension(f)))
.ToList();
}
Expand Down

0 comments on commit 38984a9

Please sign in to comment.