add IsDir for File class