Added IsFile and IsDirectory