code: def ensure_parent (self, mode=0o777, parents=False):
          
          return self.parent.ensure_dir (mode, parents)
docs: Ensure that this path's *parent* directory exists.
  
          Returns a boolean whether the parent directory was created. Will
          attempt to create superior parent directories if *parents* is true.