Folder and files not deleted, even with (?d) ignore patterns (solved)

Got a folder that is not deleted.

Folder did not get deleted because there were ignored files within the folder that were not deleted

Files within the folder that were not deleted are named:

  • bibliography.bib.bak
  • bibliography.bib.sav.tmp

What I did:

  1. Had folder and files in synchronized state
  2. Had SyncTrayzor on local device GTMM2P OFF
  3. Had Syncthing on remote device FAMFRUP ON
  4. Moved some folders, as well as the folder “00 Latex” and the ignored files within this folder, to another folder on “server-t-150” by using cut and paste.
  5. Started Syncthing on GTMM2P

Relevant Ignore patterns:

Having made use of Ignoring Files — Syncthing documentation and some posts in this forum, I am currently using the following:

// .stignore
//
#include .stglobalignore

ignore patterns in the file “.stglobalignore”

//-Syncthing
(?d).stignore
(?d).stfolder

//JabRef
(?d).bib.bak
(?d).bib.sav.tmp
*.bib.bak
*.bib.sav.tmp

(I have a few more, but these should be the only relevant ones here. Trying to keep this discussion clean)

Screenshots:

  1. local device:

  2. remote device:

My desired outcome:

  • The (old) folder “00 Latex” should be deleted, when cutting and pasting this folder.
  • Ignored Files within “00 Latex” should be deleted when “00 Latex” is cut and pasted.

What can I or should I do?

Is there something wrong with my ignore patterns?

These two aren’t really needed unless you’ve got nested folders. If you do have nested folders though, then the better way may be to ignore the whole folder in the parent’s ignore patterns.

If my understanding is correct, I think the patterns that you actually need should be

//JabRef
(?d)*.bib.bak
(?d)*.bib.sav.tmp
2 Likes

Hmm. Yes, I see the logic. ok, thanks will try that one!

Edit: By the way, I do not have nested folders. So thanks for the clarification. :slight_smile:

Seems to work as far as I have seen! Marking this as solved :slight_smile: Thanks!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.