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.

def ensure_parent (self, mode=0o777, parents=False):
        """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.

        """
        return self.parent.ensure_dir (mode, parents)