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?
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…
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.