Skip to content

Folder names beginning with a bracket (i.e. [ or ] symbol) are always included in snapshots even if your filter says to not #407

@NintendoManiac64

Description

@NintendoManiac64

Describe the bug
If you have a filter that includes a folder name that begins with a bracket (i.e. [ or ] symbol) and you have that filter so to - aka "exclude", the folder in question will still get included in snapshots.

To Reproduce
Steps to reproduce the behavior:

  1. Make sure the parent directory is included in timeshift via the Users and/or Filters tab
  2. Create a new folder inside of the directory mentioned in step1 named something like [test (]test will work too)
  3. Inside of the folder you created in step2, put and/or create some file in it (e.g. a text file named "testing" that simply says "hello world")
  4. Add the folder you created in step2 to timeshift's Filters tab set to - aka exclude
  5. Create a timeshift snapshot
  6. Browse the contents of the resulting timeshift snapshot
  7. Observe how the folder you created in step2 was in fact included
    BONUS: Return to step2 but, this time, replace the bracket symbol with a dollar sign (i.e. $ symbol) and do the subsequent steps again - you will notice that timeshift will successfully exclude the folder.

Expected behavior
Folders that have a bracket as the first character of their name should be properly excluded in snapshots if the user has set a corresponding filter to exclude said folder.

Log
(includes more directories than necessary)

System:

  • Linux Mint 21.3
  • Cinnamon
  • timeshift v24.01.1

Other comments
I've not tested brackets for file names (rather than folder names), nor have I tested brackets that are present but are not the first character. It's possible other symbols could also cause the same result, but I at least know that having the dollar sign (i.e. $ symbol) as the first character of a folder name still works perfectly fine for exclusion filters in timeshift.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions