prsctrl.scripts.upgrade_data_version.convert_data_dirs#
- convert_data_dirs(base_dir, regex_filter='.*', old_suffix='-original', new_suffix='-converted', move_if_success=True)[source]#
Convert all the data directories in base_dir to the latest prsctrl version format.
The old data base_dir will be renamed to <base_dir><old_suffix>
- Parameters:
move_if_success – If True, the new base_dir will be renamed to just base_dir if all conversions succeeded