INNER CODE UNIT · Python

process_directories

MOLAorg/mola · scripts/generate_statuses_table.py:21

def process_directories(path, items_to_remove, pattern_text):
    directories = list_directories(path)

    sorted_directories = sorted(directories, key=extract_plain_name)

    for plain_name in sorted_directories:

        # Check if the plain name passes the filter
        if plain_name not in items_to_remove:
            # Print the pattern text with the name
            output_text = pattern_text.format(name=plain_name)
            print(output_text)


path_to_search = os.path.join(script_dir, '..')
items_to_remove = ['scripts', 'docs', 'cla',
                   '.vscode', '.github', '.circleci', '.git', '.claude', '.cache']
pattern_text = \

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…