Exclude subfolders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clugsy64@hotmail.com
    New User
    • May 2017
    • 1

    Exclude subfolders

    So I want to compare local folder with that on FTP server. Below is a quick snippet of what i want to do. So I want to compare the files at the root of Folder1, Folder2 and Folder3, but I do not want to compare any of their subfolders. Is there a way to say look in this folder, but ignore ALL subfolders?

    Thanks,

    Brad

    media
    - Folder1
    -Folder1a
    -Folder1a_1
    -Folder1a_2
    -Folder1b
    -Folder1b_1
    -Folder1c
    -Folder1c_1
    -Folder1d
    -Folder1d_1
    - Folder2
    -Folder2a
    -Folder2a_1
    -Folder2a_2
    -Folder2b
    -Folder2b_1
    -Folder2c
    -Folder2c_1
    -Folder2d
    -Folder2d_1
    - Folder3
    -Folder3a
    -Folder3a_1
    -Folder3b
    -Folder3c
    -Folder3d
    -Folder3d_1
    - Folder4
    -Folder4a
    -Folder4a_1
    -Folder4b
    -Folder4c
    -Folder4d
    -Folder4d_1
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Hello,

    I believe the Filter you are looking for is:
    -.\*\*\

    Or if entered in the Session Settings dialog, Name Filters, Exclude Folders tab:
    .\*\*
    Aaron P Scooter Software

    Comment

    • Pavel
      Visitor
      • Feb 2024
      • 4

      #3
      Hi, does this still apply to BC 4 please?
      It doesn't work for me. I can't set the search depth. To what depth of the structure of the folders should BC go.
      thank you very much

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 16002

        #4
        Hello,

        The syntax does apply to BC4, but it's easy to have a typo or place the syntax in the wrong spot. The Session Settings dialog, Name Filters tab and the main view's Filters toolbar button update each other, but they also use slightly different syntax.

        It could help if you could post your specific full screen screenshot, showing your current folder structure and the filters toolbar. I could get an idea of what you are running into. You can post here or email privately at [email protected] (including a link back to this forum thread, for our reference).
        Aaron P Scooter Software

        Comment

        • Pavel
          Visitor
          • Feb 2024
          • 4

          #5
          Hi,
          unfortunately it doesn't work (.\*\*) in BC 4 or BC 5 Beta.

          I want BC to ignore folders 6, folders 7, folders 8 and folders 9. And their content. And the filter can't do it.

          Is there any solution please?

          Thank you

          Click image for larger version

Name:	Folders.png
Views:	57
Size:	81.2 KB
ID:	92267
          Click image for larger version

Name:	Filters.png
Views:	55
Size:	104.1 KB
ID:	92266
          Attached Files

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 16002

            #6
            If you want to start ignoring folder 6 in your example screenshot, the filter should be:
            .\*\*\*\*\*\*
            in the Exclude Folders section of the Session Settings​

            or
            -.\*\*\*\*\*\*\
            in the toolbar (the toolbar uses - to signify Exclude, and requires the trailing \ to designate a foldername\).
            Aaron P Scooter Software

            Comment

            • Pavel
              Visitor
              • Feb 2024
              • 4

              #7
              Hello and thank you for your efforts.
              But it's not working.
              Have you tried your tutorial on BC 4 for Mac, please?
              I am attaching screen shots - maybe the problem is that I am misunderstanding what the filter is supposed to do.
              I just want BC to ignore subfolders and files from a certain tree depth onwards.

              Thank you

              Click image for larger version

Name:	1-BC4.png
Views:	44
Size:	51.6 KB
ID:	92283
              Click image for larger version

Name:	2-BC4-filters.png
Views:	48
Size:	27.7 KB
ID:	92281 Click image for larger version

Name:	3-BC4-copy.png
Views:	45
Size:	40.1 KB
ID:	92282 Click image for larger version

Name:	4-BC4-menu.png
Views:	45
Size:	52.8 KB
ID:	92284

              Comment

              • Aaron
                Team Scooter
                • Oct 2007
                • 16002

                #8
                Hello,

                Ah, that's it. MacOS uses / for the folder separator instead of \. You'll need to update the filter string to use / instead. And then yes, tested and it works.
                Aaron P Scooter Software

                Comment

                • Pavel
                  Visitor
                  • Feb 2024
                  • 4

                  #9
                  Yes, it works great with /

                  Thanks a lot for your help.

                  Comment

                  Working...