1 reputation
bio website
visits member for 3 years, 5 months
seen Jan 10 '12 at 23:57

comment Calculate MD5 checksum of a directory
@Kibbee To prevent that, you need to take into account something other than the data content of each file and exactly how you checksum the files. Given: [checksums] 1. A (Directory) - File1 [ABC] - File2 [CBA] 2. B (Directory) - File1 [ABC] - B1 (Directory) - File2 [CBA] 3. C (Directory) - File4 [ABC] - File5 [CBA] 4. D (Directory) - File1 copy [ABC] - File2 copy [CBA] Directory A and B are not identical although they contain the same files (although in B1, File2 is in a subdirectory). Under your example, A and C would be considered identical because