def do_mount (self,source):
        """do_mount(source)
        mount ssh source as local filesystem by calling sshfs"""
        user, host, path = self._split_ssh_source (source)
        mp = self._get_possible_mountpoint (user, host)
        if not os.path.exists (mp):
            os.mkdir (mp)
        sshfs = "%s@%s:%s" % (user, host, path)
        
        status = os.system ('sshfs -p %d -o uid=%d "%s" "%s"' % (self.port, self.uid, sshfs, mp))
        if status == 0:
           print "%s mounted as %s" % (sshfs, self.mountpoint)
        else:
            os.rmdir (mp)
do_mount(source)
        mount ssh source as local filesystem by calling sshfs
recipes/Python/573473_sshfs_mount_tool/recipe-573473.py