code: def _path_parts(self, pth):
          
          res = re.split(r"[\\/]", pth)
          if res and os.path.splitdrive(res[0]) == (res[0], ''):
              res[0] += os.path.sep
          return res
docs: Return a list of all directories in the path ``pth``.