В качестве примера: < /p>
Код: Выделить всё
#include
#include
using namespace std;
using namespace std::filesystem;
auto main(int, char **) -> int {
// create absolute directory then symlink to it
create_directory("/tmp/tgt");
create_directory_symlink("/tmp/tgt", "/tmp/dir");
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79419104/c-setting-current-path-to-a-symlink-without-resolving-link[/url]
Мобильная версия