def METHOD_NAME(options):
    if not os.path.isdir(options.archive_dir):
        os.mkdir(options.archive_dir)
        os.chmod(options.archive_dir, 0o777)
    arch_root = '%s/%s' % (options.archive_dir, ARCHIVE_ROOT)
    if not os.path.isdir(arch_root):
        os.mkdir(arch_root)
        os.chmod(arch_root, 0o777)
    # db-dir needs to be writeable by postgres
    db_path = '%s/%s' % (arch_root, DB_DIR)
    if not os.path.isdir(db_path):
        os.mkdir(db_path)
        os.chmod(db_path, 0o777)
    report_path = '%s/%s' % (arch_root, REPORTS_DIR)
    if not os.path.isdir(report_path):
        os.mkdir(report_path)
    transition_path = '%s/%s' % (arch_root, TRANSITION_DIR)
    if not os.path.isdir(transition_path):
        os.mkdir(transition_path)
    debug_path = '%s/%s' % (arch_root, DEBUG_DIR)
    if not os.path.isdir(debug_path):
        os.mkdir(debug_path)