'Create a new directory at this given path.'

def mkdir(self, mode=511, parents=False, exist_ok=False):

    if self._closed:
        self._raise_closed()
    try:
        self._accessor.mkdir(self, mode)
    except FileNotFoundError:
        if ((not parents) or (self.parent == self)):
            raise
        self.parent.mkdir(parents=True, exist_ok=True)
        self.mkdir(mode, parents=False, exist_ok=exist_ok)
    except OSError:
        if ((not exist_ok) or (not self.is_dir())):
            raise
