INNER CODE UNIT · Python

update_md_file

Kotlin/kandy · util/kandy-samples-utils/update_ws_resources.py:25

def update_md_file(md_file_path, resource_files, resources_dir):
    """
    Completely overwrite the markdown file with resource tags for each file.

    Args:
        md_file_path (str): Path to the markdown file
        resource_files (list): List of resource file paths
        resources_dir (str): Base directory for resources
    """
    resources_path = Path(resources_dir)

    # Prepare the resource tags
    resource_tags = []
    for file_path in resource_files:
        # Get just the filename without the path
        file_path = Path(file_path)
        filename = file_path.name

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…