create directory before checkpoint is finished.