{"id":1724,"date":"2009-09-28T12:30:56","date_gmt":"2009-09-28T20:30:56","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/?p=1724"},"modified":"2009-09-28T13:18:43","modified_gmt":"2009-09-28T21:18:43","slug":"synchronize-folders-with-primalmerge","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2009\/09\/28\/synchronize-folders-with-primalmerge\/","title":{"rendered":"Synchronize folders with PrimalMerge"},"content":{"rendered":"<p>Ever run into a situation where you have 2 folders with identical file names in them but possibly different content in the files? You really don\u2019t want to have to open each and every file to compare them and then copy the files from one folder to another, right? PrimalMerge to the rescue!<\/p>\n<p>PrimalMerge has the ability to compare complete folders of files and then allows you to synchronize those folders with each other. Let\u2019s take a look at how this is done.<\/p>\n<p>Start off by first opening the two folders that you want to compare. Do this by selecting the Application button and choosing \u201cOpen Directory\u2026\u201d from the menu. This option brings up the \u201cSelect directories to compare\u201d dialog box. Within this box you can either type in the directory paths that you want to compare or click on the \u201c\u2026\u201d button next to each path to select by browsing folders. Press the \u201cOK\u201d button when your choices have been made.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2009\/09\/Screenshot20090928at10.51.40AM.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"Screen shot 2009-09-28 at 10.51.40 AM\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2009\/09\/Screenshot20090928at10.51.40AM_thumb.png\" border=\"0\" alt=\"Select Directories to Compare\" width=\"244\" height=\"72\" \/><\/a><\/p>\n<p>PrimalMerge will open a window with 5 columns, showing the list of files from the folders selected. The first column displays the file name with an icon. A red icon indicates that the same file name exists in both folders, but that the file contents are different. This is also indicated in the \u201cComparison Result\u201d column.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2009\/09\/Screenshot20090928at10.52.03AM.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"Screen shot 2009-09-28 at 10.52.03 AM\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2009\/09\/Screenshot20090928at10.52.03AM_thumb.png\" border=\"0\" alt=\"PrimalMerge\" width=\"244\" height=\"142\" \/><\/a><\/p>\n<p>A blue icon indicates that the same file exists in both folders and that they are identical. A half icon indicates that the file exists only in one of the two folders. These states are also displayed in the \u201cComparison Result\u201d column.\u00a0 You can use the \u201cLeft Date\u201d (first folder) and \u201cRight Date\u201d (second folder) columns to compare which file is newer.<\/p>\n<p>Here is where the magic takes place. Looking carefully at the sample above, you can see that some of the files in the \u201cRight Date\u201d column are newer and marked by an asterisk. Select all of the files in the list. Right click and select \u201cCopy\u2026Right to Left\u201d. Viola! The newer files from the second folder replace the files in the first folder.<\/p>\n<p>This is just a small example of some of the versatility in PrimalMerge. Download a 45 day free trial at http:\/\/www.primaltools.com\/products\/info.asp?p=PrimalMerge.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever run into a situation where you have 2 folders with identical file names in them but possibly different content in the files? You really don\u2019t want to have to open each and every file to compare them and then copy the files from one folder to another, right? PrimalMerge to the rescue! PrimalMerge has [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,283],"tags":[532,57],"class_list":["post-1724","post","type-post","status-publish","format-standard","hentry","category-general","category-howto","tag-primalmerge-2009","tag-scripting"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/1724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=1724"}],"version-history":[{"count":12,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/1724\/revisions"}],"predecessor-version":[{"id":1834,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/1724\/revisions\/1834"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=1724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=1724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=1724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}