|
| 1 | +--- |
| 2 | +permalink: comparisonMethods.html |
| 3 | +layout: default |
| 4 | +title: Comparison method |
| 5 | +--- |
| 6 | + |
| 7 | +Choose the method to compare folders and how to handle special files and metadata |
| 8 | + |
| 9 | + |
| 10 | +# Comparison method |
| 11 | + |
| 12 | +It is possible to choose which method to use to compare two folders. |
| 13 | +The method to use is strictly related to user needs, comparing source code (files large only few kilobytes) should use a content comparison but to find which movies (files larger than a gigabytes) are not present on right side is faster compare by file size or file timestamp. |
| 14 | + |
| 15 | +Every file is treated as binary and it is compared byte by byte, only 'Compare file content ignoring line ending differences' compares text. |
| 16 | + |
| 17 | +The complete list of supported comparison methods |
| 18 | + |
| 19 | +<table class="bordered"> |
| 20 | +<tr> |
| 21 | +<th>Method</th> |
| 22 | +<th>Description</th> |
| 23 | +</tr> |
| 24 | +<tr> |
| 25 | +<td>Compare file sizes |
| 26 | +<br/>Very quick</td> |
| 27 | +<td>Two file are identical if they have the same file size</td> |
| 28 | +</tr> |
| 29 | +<tr> |
| 30 | +<td>Compare file timestamps |
| 31 | +<br/>Very quick</td> |
| 32 | +<td>two file are identical if they have the same timestamp. |
| 33 | +<br/>It is used the Unix <strong>last modified date</strong> for comparison. |
| 34 | +<br/>If file A timestamp is less than file B it is marked as <strong>older</strong> and it will be shown with different color. |
| 35 | +<br/>It is possible to set a span in seconds to consider two files with same timestamp, see below</td> |
| 36 | +</tr> |
| 37 | +<tr> |
| 38 | +<td>Compare file timestamps and sizes |
| 39 | +<br/>Very quick</td> |
| 40 | +<td>Compare the files timestamp, only if it is different then compare the size.</td> |
| 41 | +</tr> |
| 42 | +<tr> |
| 43 | +<td>Compare file content only |
| 44 | +<br/>Slow on large files</td> |
| 45 | +<td>Compare files as binary, byte by byte</td> |
| 46 | +</tr> |
| 47 | +<tr> |
| 48 | +<td>Compare file timestamp, size and content |
| 49 | +<br/>Slow on large files</td> |
| 50 | +<td>Compare the file content, only if content is different compare the timestamp and only if timestamp differs compare size</td> |
| 51 | +</tr> |
| 52 | +<tr> |
| 53 | +<td>Compare file content ignoring line ending differences |
| 54 | +<br/>Slow on large files</td> |
| 55 | +<td>Compare file as plain text, read line by line and compare lines. |
| 56 | +<br/>The line ending character is ignored so a DOS file (with lines separated by CR+LF) matches an Unix file (with lines separated by LF) if, ignoring the newlines, the content is identical</td> |
| 57 | +</tr> |
| 58 | +</table> |
| 59 | + |
| 60 | + |
| 61 | +# Compare Finder metadata |
| 62 | + |
| 63 | +It is possible to compare OSX Finder Metadata. |
| 64 | + |
| 65 | +When the metadata comparison mismatches, for example left file's label is red and right file's label is blue, the other comparison methods (size, timestamp, content) are not evaluated. |
| 66 | + |
| 67 | +The complete list of supported metadata |
| 68 | + |
| 69 | +<table class="bordered"> |
| 70 | +<tr> |
| 71 | +<th>Metadata</th> |
| 72 | +<th>Description</th> |
| 73 | +</tr> |
| 74 | +<tr> |
| 75 | +<td>Label</td> |
| 76 | +<td>Compare all labels assigned to a file</td> |
| 77 | +</tr> |
| 78 | +<tr> |
| 79 | +<tr> |
| 80 | +<td>Tags |
| 81 | +<br/><strong>Available in OSX 10.9 or above</strong></td> |
| 82 | +<td>Compare all tags assigned to a file</td> |
| 83 | +</tr> |
| 84 | +<tr> |
| 85 | +</table> |
| 86 | + |
| 87 | + |
| 88 | +# Special files handling |
| 89 | + |
| 90 | +User can choose to not traverse special files like symbolic links and packages |
| 91 | + |
| 92 | +<table class="bordered"> |
| 93 | +<tr> |
| 94 | +<th>File</th> |
| 95 | +<th>Description</th> |
| 96 | +</tr> |
| 97 | +<tr> |
| 98 | +<td>Follow Symbolic Links</td> |
| 99 | +<td>If checked the symbolic links will be traversed</td> |
| 100 | +</tr> |
| 101 | +<tr> |
| 102 | +<tr> |
| 103 | +<td>Skip Packages</td> |
| 104 | +<td>If checked special OSX files (so called bundle or packages) |
| 105 | +<br/>like Applications and Frameworks will not be traversed</td> |
| 106 | +</tr> |
| 107 | +<tr> |
| 108 | +</table> |
| 109 | + |
| 110 | + |
| 111 | +# Timestamp tolerance |
| 112 | + |
| 113 | +The timestamp comparison considers two files matching when the time (including the seconds) is identical but sometime it would be useful to have a range of tolerance for example when the difference is between 5 seconds. |
| 114 | + |
| 115 | +You can set this tolerance entering a positive integer number into the text field |
| 116 | + |
| 117 | +Ignore differences of X seconds or less |
| 118 | + |
| 119 | + |
| 120 | +# File to show |
| 121 | + |
| 122 | +After the comparison complete you can determine which files to show |
| 123 | + |
| 124 | +Definition: **Orphan** indicates a file present only on one side |
| 125 | + |
| 126 | +The complete list of show options |
| 127 | + |
| 128 | +<table class="bordered"> |
| 129 | +<tr> |
| 130 | +<th>Choice</th> |
| 131 | +<th>Description</th> |
| 132 | +<tr> |
| 133 | +<td>Show All</td> |
| 134 | +<td>No matters which comaprison result, show files</td> |
| 135 | +</tr> |
| 136 | +<tr> |
| 137 | +<tr> |
| 138 | +<td>Only Mismatches</td> |
| 139 | +<td>Show only files with some mismatch (size, timestamp or content)</td> |
| 140 | +</tr> |
| 141 | +<tr> |
| 142 | +<tr> |
| 143 | +<td>Only Matches</td> |
| 144 | +<td>Show only identical files</td> |
| 145 | +</tr> |
| 146 | +<tr> |
| 147 | +<tr> |
| 148 | +<td>No Orphans</td> |
| 149 | +<td>Show files present both on left and right side</td> |
| 150 | +</tr> |
| 151 | +<tr> |
| 152 | +<tr> |
| 153 | +<td>Only Orphans</td> |
| 154 | +<td>Show files present only on left or only on right</td> |
| 155 | +</tr> |
| 156 | +<tr> |
| 157 | +</table> |
| 158 | + |
0 commit comments