

def save(self, path, create_dirs=False):
    '\n        Save response body to file.\n        '
    (path_dir, path_fname) = os.path.split(path)
    if (not os.path.exists(path_fname)):
        try:
            os.makedirs(path_dir)
        except OSError:
            pass
    with open(path, 'wb') as out:
        out.write(self._bytes_body)

dataset/ETHPy150Open lorien/grab/grab/document.py Document.save/VarMisuse@42/64 `path_dir`->`path_fname`