Don't run sha1_file on non-files.