CalvinXu17

Results 2 issues of CalvinXu17

![image](https://user-images.githubusercontent.com/50015746/119766534-c6fb1a80-bee7-11eb-91c8-e0912ad9feab.png) 应将if(!dir)修改为if(!dirp)