std::filesystem (C++17)
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
std::filesystem punon me skedarë dhe dosje: kontrollon nëse ekzistojnë, i liston, i kopjon dhe i fshin, dhe e trajton rrugën njësoj në Windows, Linux dhe macOS.
EnglishEN
std::filesystem works with files and folders: checks whether they exist, lists, copies and deletes them, and handles paths the same on Windows, Linux and macOS.
Si ta mendosh
Si File Explorer-i, por me kod.
Lexoje në anglisht
Like File Explorer, but with code.
Shembull kodicpp
namespace fs = std::filesystem;
for (auto& e : fs::directory_iterator("."))
if (e.path().extension() == ".cpp") std::cout << e.path() << "\n";