update _isFile & _isDirectory