code: def _get_starting_paths(self, curdir):
          
  
          results = [curdir]
  
          if not self._is_parent(curdir) and not self._is_this(curdir):
              fullpath = os.path.abspath(curdir)
              basename = os.path.basename(fullpath)
              dirname = os.path.dirname(fullpath)
              if basename:
                  matcher = self._get_matcher(basename)
                  results = [os.path.basename(name) for name in self._glob_dir(dirname, matcher, self)]
  
          return results
docs: Get the starting location.
  
          For case sensitive paths, we have to "glob" for
          it first as Python doesn't like for its users to
          think about case. By scanning for it, we can get
          the actual casing and then compare.