Considering folderA containing those files:

```
foo
bar
baz

```

and folderB containing those:

```
foo
baz
foobar
qux

```

How can I copy `foo` and `baz` from folderA to a new folderC?  

Note that I'm comparing only their names, not their contents.