def deindexify(webroot):
    '\n    Walks directory stucutre starting at `webroot` and rewrites all folder links.\n    '
    content_folders = list(os.walk(webroot))
    for (rel_path, _subfolders, filenames) in content_folders:
        for filename in filenames:
            filepath = os.path.join(rel_path, filename)
            if filepath.endswith('_Subtitle.vtt'):
                video_matching_filepath = filepath.replace('_Subtitle.vtt', '_Low_Resolution.vtt')
                os.rename(filepath, video_matching_filepath)
            else:
                process_file(filepath)
Walks directory stucutre starting at `webroot` and rewrites all folder links.
def deindexify(webroot):
    '\n    \n    '
    content_folders = list(os.walk(webroot))
    for (rel_path, _subfolders, filenames) in content_folders:
        for filename in filenames:
            filepath = os.path.join(rel_path, filename)
            if filepath.endswith('_Subtitle.vtt'):
                video_matching_filepath = filepath.replace('_Subtitle.vtt', '_Low_Resolution.vtt')
                os.rename(filepath, video_matching_filepath)
            else:
                process_file(filepath)