code: func IsDirExists(pth string) (bool, error) {
  	fileInf, isExists, err := genericIsPathExists(pth)
  	if err != nil {
  		return false, err
  	}
  	if !isExists {
  		return false, nil
  	}
  	if fileInf == nil {
  		return false, errors.New("No file info available")
  	}
  	return fileInf.IsDir(), nil
  }
docs: // IsDirExists ...