treediff/treediff.pseudocode
2016-01-25 09:13:34 -06:00

13 lines
370 B
Plaintext

analyzeDir (tail call optimizable?)
count total # of files
for all files in directory
compute md5 checksum
create file entry: file obj, relative path, checksum
add entry to dictionary indexed by relative path
add entry to dictionary indexed by checksum
add entry to list of all entries
for each subdirectory, analyzeDir
return analysis