Don't pass if the file is a directory