hash all the files in a specified path, appreciate .ignore files. uses `sha1` by default.