In this section, we will implement a little tool that finds out which files in a directory are duplicates of each other. With that knowledge, it will remove all but one of all duplicated files, and substitute them with symbolic links, which reduces the folder size.
- First, we need to include the necessary headers and then we declare that we use namespace std and filesystem by default.
#include <iostream> #include <fstream> #include <unordered_map> #include <filesystem> using namespace std; using namespace ...