def transport(world, shinydata, filename, path):
    if not os.path.exists(path):
        try:
            os.mkdir(path)
        except Exception, e:
            world.log.error('EXPORT FAILED: ' + str(e))
            raise SportError('Error accessing the export directory for areas.')
    filepath = os.path.join(path, filename)
    try:
        f = open(filepath, 'w')
    except IOError, e:
        world.log.debug(str(e))
        raise SportError('Error writing to file. Check the logfile for details')
    else:
        f.write(shinydata)
    finally:
        f.close()
    return 'Export complete! Your file can be found at:\n%s' % filepath
Returns a tuple of (user, host, port, db) with config, pillar, or default
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/lib/sport_plugins/transports/save_file.py/transport--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/postgres.py/_connection_defaults