def sort_path(path):
    url = path_to_url(path)
    if (mimetypes.guess_type(url, strict=False)[0] == 'text/html'):
        urls.append(url)
    else:
        files.append(url)
def sort_path(path):
    url = path_to_url(path)
    if (mimetypes.guess_type(url, strict=False)[0] == 'text/html'):
        urls.append(url)
    else:
        files.append(url)