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