add sha1 function to dirlist