Exporting Duplicates to a CSV File

Top   Previous   Next

The Professional and Enterprise Editions allow you to export the results of a duplicate hunt to a CSV file.  This file will export any duplicate files by group to a file.  You can use this file to import the duplicate information into another program or to create custom reports for the duplicate information.

 

The format of the file is as follows:

Group #,# of Files in Group,Group Description

File #,File path

 

Some sample data would be:

Group 1,9,"e;9 files with a size of 61 bytes, and a checksum of 57359E3E"e;

File 1,C:\Downloads\WackoWiki\wacko.r4.2\themes\coffee\css\.htaccess

File 2,C:\Downloads\WackoWiki\wacko.r4.2\themes\coffee\icons\.htaccess

File 3,C:\Downloads\WackoWiki\wacko.r4.2\files\.htaccess

File 4,C:\Downloads\WackoWiki\wacko.r4.2\js\.htaccess

File 5,C:\Downloads\WackoWiki\wacko.r4.2\images\.htaccess

File 6,C:\Downloads\WackoWiki\wacko.r4.2\themes\default\css\.htaccess

File 7,C:\Downloads\WackoWiki\wacko.r4.2\themes\default\icons\.htaccess

File 8,C:\Downloads\WackoWiki\wacko.r4.2\themes\tabs\css\.htaccess

File 9,C:\Downloads\WackoWiki\wacko.r4.2\themes\tabs\icons\.htaccess

Group 2,6,"e;6 files with a size of 0 bytes, and a checksum of 0"e;

File 1,C:\Downloads\WackoWiki\wacko.r4.2\themes\coffee\appearance\footermsword.php

File 2,C:\Downloads\WackoWiki\wacko.r4.2\themes\coffee\appearance\footerprint.php

File 3,C:\Downloads\WackoWiki\wacko.r4.2\themes\default\appearance\footermsword.php

File 4,C:\Downloads\WackoWiki\wacko.r4.2\themes\default\appearance\footerprint.php

File 5,C:\Downloads\WackoWiki\wacko.r4.2\themes\tabs\appearance\footermsword.php

File 6,C:\Downloads\WackoWiki\wacko.r4.2\themes\tabs\appearance\footerprint.php

Group 3,3,"e;3 files with a size of 651 bytes, and a checksum of 2222AFD1"e;

File 1,C:\Downloads\WackoWiki\wacko.r4.2\themes\coffee\css\wakkamsword.css

File 2,C:\Downloads\WackoWiki\wacko.r4.2\themes\default\css\wakkamsword.css

File 3,C:\Downloads\WackoWiki\wacko.r4.2\themes\tabs\css\wakkamsword.css

 

To parse the file, you will need to read each group line to find the number of files in the group.  You can then read each file.  The filename always extends from the first comma on the line to the end of the line.