add a mkdir call to clearfoo