Learn to Code
John F. Dumas
contact me | resume | how it works | example programs | testimonials | main page
C++ - Duff
► Problem Description: Write a program to compare two directory heirarchies. Do not compare the contents of any files, just check that the sizes match and that all directories and files found in the first hierarchy are also found in the second and vice versa.
There should be no output if the heirarchies match, otherwise show the user any missing files or directories as well as any files that had a different size.
► Example Output:
========================================================
Directories found under: [d:\]
But not under : [z:\backup]
========================================================
music-and-video
downton-abbey
saxondale
========================================================
Directories found under: [z:\backup]
But not under : [d:\]
========================================================
news
information
descriptions
========================================================
Files in : [d:\]
but not in: [z:\backup]
========================================================
batman.mp4
caddyshack.mp4
edward-scissorhands.mp4
rudolph-the-red-nosed-reindeer.mp4
========================================================
Size difference encountered
d:\notes.txt: 1761
z:\backup\notes.txt: 1742
========================================================
► Source code
All source files (zip file)