def _mkdirs(self, path):
        """Recursively creates directories."""
        base = ''
        for part in path.split('/'):
            base += part + '/'
            try:
                self.sftp.lstat(base)
            except __HOLE__, e:
                if e.errno == errno.ENOENT:
                    self.sftp.mkdir(base)
dataset/ETHPy150Open grow/grow/grow/deployments/destinations/scp.py/ScpDestination._mkdirs