Updated funcs.: IsFile, IsDir