implementing folder hashing