Prevent folder to get scanned at all

Hello,

I have some files I don’t want Syncthing to check at all. Some because they are corrupted and it will through a read error on scan, other because I don’t want Syncthing to know about them.

I have added in exclusion /data/myfolder/toignore but it keeps scanning the parent and the childs… toignore/7b scan: readdirent /data/myfolder/toignore/7b: input/output error

Could you please advice how I could exclude it completely? Thank you!

Ignoring a directory prevents it from being read or walked at all, unless you also have other patterns that could unignore files in that directory. Post your actual ignore patterns and actual error?

I only have this:

(?d)**.log
**.log
/data/myfolder/toignore

Although it doesn’t hurt, double asterisks aren’t required. A *.log will match any filename that ends in “.log” anywhere under the sync folder.

Is /data a subdirectory of your Syncthing folder or is it the root?

Is

It’s the root :slight_smile:

In that case, if you haven’t already done so, the pattern needs to be changed to the following:

/myfolder/toignore

From the first paragraph of Syncthing’s Ignoring Files page… :wink:

All patterns are relative to the synced folder root.

And on a somewhat related note…

That’s a hardware media error.

If you ignore it and keep using the drive, sooner rather than later you won’t have to worry about getting Syncthing to ignore those files, because all of the files will automatically be excluded – permanently. :smirk:

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