Announcement

Collapse
No announcement yet.

Folder compare only for existing directories

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

  • Folder compare only for existing directories

    Hello,

    I want to do a folder compare, but only with folders that exist on BOTH sides.
    I know about the orphan files, but I need to see orphan files in folders that exist on both sides.

    I want to synchronise all files in folders that exist on both sides within a specific folder depth. I do NOT want to copy the files in folders, that do NOT exist on both sides.

    Example:
    left:
    archive\a\albrecht\1900\01
    archive\a\albrecht\1900\02
    archive\a\albrecht\1910\
    archive\a\albrecht\1920\

    right:
    archive\a\albrecht\1900\01
    archive\a\albrecht\1900\02
    archive\a\albrecht\1920\

    here I want to sync only files inside the folders ..\1900 and ..\1920 (and it's subfolders !), but not the ..\1910 ones.

    Can anyone help me with that ?

  • #2
    This scenario would be a bit complicated to do automatically. You can just right-click and exclude any individual folders.

    Alternatively, you can:
    View menu -> Set to Compare Files + Folders
    File Filter: -*.*
    Display Filter set to Only Orphans
    Select All (important that the Orphan Folders remain selected during the next few steps)

    Now you should have your Orphan folders that you do not want selected. You can exclude them, or:

    Display Filter set to All
    Remote the File Filter
    Then Edit menu -> Invert Selection (this should then select all non-Orphan folders).
    Perform Sync only on Selection.
    Aaron P Scooter Software

    Comment


    • #3
      Thank you very much !

      This works only on one directory level, not for orphan files / directories in subfolders. These will still be selected if the directory on the upper directory level is NOT an orphan.

      I knew it would be too complicated for Beyond Compare.

      Comment


      • #4
        Originally posted by Schlitz View Post
        This works only on one directory level, not for orphan files / directories in subfolders. These will still be selected if the directory on the upper directory level is NOT an orphan.
        Seems to me that Aaron's solution (#2 above) does exactly what you requested, including the case when you have orphan folders inside subfolders.
        Last edited by markf_2748; 01-Jan-2009, 01:17 PM.

        Comment


        • #5
          ok, thank you, I was not precise enough:

          I only want to copy files from directories on the left that already exists on the right side.
          Example:
          left:
          \A\AB\01
          \A\AB\02
          \A\AB\03
          \B\BA\04

          right:
          \A\AB\01
          \A\AB\03

          here I only want to copy files within folders "01" and "03" !

          Comment


          • #6
            Schlitz,

            I don't think it is possible to do this in Beyond Compare.
            Chris K Scooter Software

            Comment


            • #7
              Originally posted by Schlitz View Post
              here I only want to copy files within folders "01" and "03" !

              How about this ...
              Set up your toolbar to show toggles (from RMB context menu). Then:

              (1) Edit > Collapse All
              (2) View > Show All
              (3) Toggle Left Orphans button on command toolbar (to hide them)
              (4) Edit > Select All
              (5) Toggle Left Orphans again (to show them, but they remain unselected)
              (6) Edit > Expand All (the desired folders remain selected)
              (7) Actions > Update Right

              The Synchronize: Update Right window should list the files which will be copied left to right, including orphans from your desired folders. Nothing from your top level, unselected orphan folders will be copied.

              Comment

              Working...
              X