mirror of
https://github.com/mrfluffy-dev/fsorter.git
synced 2026-01-17 02:50:33 +00:00
writes the name of the files it moves.
This commit is contained in:
1
main.cpp
1
main.cpp
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user