Do you need an "ensure_dir" call here?