May 2017
Intermediate to advanced
590 pages
17h 18m
English
Use the following library functions to retrieve information about filesystem objects:
auto exists = fs::exists(path, err); std::cout << "file exists: " << std::boolalpha << exists << std::endl;
auto same = fs::equivalent(path, fs::current_path() / "." / "main.cpp"); std::cout << "equivalent: " << same << std::endl;
auto size = fs::file_size(path, err); std::cout << "file size: " << size << std::endl;
Read now
Unlock full access