An added path could be a directory, not just a file.

Paths added in an SVN commit could be directories but the code was previously only checking if the path was to a file.