I'm trying to convert const std::filesystem:irectory_entry (dirent) to tchar but I don't understand how it an be done. I tried a lot of ways. Can you help me?

Code:
#include <memory>
#include <filesystem>
#include <algorithm>
#include <iostream>
#include <tchar.h>

namespace fs = std::filesystem;

int main() try
{
    std::for_each(fs::recursive_directory_iterator("./foo/"), {},
        [](fs::directory_entry const& dirent)
    {
        if (fs::is_regular_file(dirent) &&
            dirent.path().filename() == "black.txt")
            TCHAR path[_MAX_PATH];
            const std::filesystem::directory_entry &entry = *path;
        _tcscpy(path, dirent);

    });
}
catch (fs::filesystem_error const& e)
{
    std::cerr << "error: " << e.what() << '\n';
}