what happens if outFile is a directory?