def mkdir_and_cd(dirname):
    if not os.path.exists(dirname):
        os.makedirs(dirname)
        os.chdir(dirname)
    else:
        os.chdir(dirname)
Change directory and/or create it if necessary
dataset/ETHPy150Open huntrar/scrape/scrape/utils.py/mkdir_and_cd