Converted clear_dir to clearDir