Announcement

Collapse
No announcement yet.

Exclude files based on their content

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exclude files based on their content

    Hello,

    we do have a CMS that generates files directly on the file system. They are used as loader for the actual content of the page.
    They all contain a line line: Page.ID=xxx;

    We also have our own custom code mixed up within the file system.

    In order to synchronize servers, it would be nice to exclude the CMS generated files based on their content. Typically, we would exclude all the files containing Page.ID=.;$ (regex) from the comparison.

    Is it possible to achieve that with Beyond Compare?
    So far, the only way I found to do that was to first copy with an Ant script both filesets (excluding the files by content), synchronizing them and copying them back to their original location. As you can imagine, this is a very long and error prone process.

    Thanks in advance for your help,

  • #2
    Hello,

    We don't have a 1-step method for exclusion, but we do have a filter to Find these items in the Session menu -> Session Settings, Other Filters, Text Content.

    You can then Find the items, issue an Edit menu -> Expand All Command, Edit menu -> Select All Files command, and Exclude them. Then go back to the Other Filters section and Clear the text content filter.

    At this point, the items manually excluded would be gone, and your other items would be visible. You would need to repeat these steps to find them, since content could change while the file name may not.
    Aaron P Scooter Software

    Comment


    • #3
      Hi Aaron,

      thanks for the feedback. Even if I think it would make sense to have such a feature, I really appreciate to solution you proposed. This will do the trick.

      Best,

      Emmanuel

      Comment

      Working...
      X