writes the name of the files it moves.

This commit is contained in:
Zastian Pretorius
2021-10-23 21:39:04 +02:00
parent 2d325fc790
commit 16cc6eb25a

View File

@@ -139,6 +139,7 @@ void sortPath(std::string path, std::vector<typeAndPaths> Paths)
for (int x = 0; x < Paths[i].extentions.size(); x++) {
if(Paths[i].extentions[x] == file.path().extension())
{
std::cout << file.path().string() << std::endl;
fs::rename(file.path().string(), Paths[i].path + file.path().filename().string());
}
}