don't hash directories and prevent adding empty file hash value to database