ROMCleaner

ROMCleaner will remove files on disk (and from the cache file) that are no longer included in the user config.

ROMCleaner has no config arguments.

API

class romsearch.ROMMover(platform, game, config_file=None, config=None, platform_config=None, logger=None, log_line_sep='=', log_line_length=100)[source]

ROM Moving and cache updating tool

Because we do this per-platform, per-game, they need to be specified here

Parameters:
  • platform (str) – Platform name

  • game (str) – Game name

  • config_file (str, optional) – path to config file. Defaults to None.

  • config (dict, optional) – configuration dictionary. Defaults to None.

  • platform_config (dict, optional) – platform configuration dictionary. Defaults to None.

  • logger (logging.Logger, optional) – logger. Defaults to None.

  • log_line_length (int, optional) – Line length of log. Defaults to 100

cache_update(file, rom_dict)[source]

Update the cache with new file data

move_file(zip_file_name, unzip=False, delete_folder=False)[source]

Move file to directory structure, optionally unzipping

move_roms(rom_dict)[source]

Actually move the roms

run(rom_dict)[source]
save_cache()[source]

Save out the cache file