Modified classes so copyPathnames method takes a Set<Path> rather than a List<Path>.