added isDir wrapper for file hasher