def ensure_dir(path):

    if not os.path.exists(path):
        os.makedirs(path)
Generator used to iterates through track
dataset/ETHPy150Open jlisee/xpkg/python/xpkg/util.py/ensure_dir--crossover with--dataset/ETHPy150Open tkrajina/gpxpy/gpxpy/gpx.py/GPXTrack.walk