Next privilege 5 Rep.
Participate in meta
0 0 0
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
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