code: def parts(self):
          
          parts = self.split(os.path.sep)
          parts[0] = parts[0] and parts[0] or '/'
          return parts
docs: Split the path into parts like Pathlib
  
          >>> expected = ['/', 'path', 'to', 'there']
          >>> assert DotPath('/path/to/there').parts() == expected