PyCharm provides a dedicated Differences Viewer for Folders for comparing files in two folders against the file size, content, or timestamp. The Differences Viewer shows the contents of the selected directories in the left and right panes of the Item List. The contents of the selected file are shown in the lower pane, with the differences being color-highlighted.

Besides exploring differences, the tool also provides interface for synchronizing the contents of folders.

In this section:

  • Configure the layout of the Items List. Use the toolbar buttons to narrow down or widen the set of items to show. For example, show or hide files that exist in just one of the directories, equal files, or different files, etc.
  • Specify the parameter for comparison. In the Compare by drop-down list, select one of the possible options (contents, size, or time stamp).
  • Filter the folders' contents. To do that, type filtering string in the Filter text field, and press Enter to apply it. Using the asterisk * wildcard to represent any number of characters is welcome.
  • To switch to another pair of folders to compare, update the fully qualified paths to them. Click the Browse button browseButton.png next to the Paths read-only fields and choose the required folders in the dialog that opens.
  • Explore the detected differences between files in the Differences Pane.

compareFolders

See Also

Procedures:

Reference:

Web Resources: