Use case of trailing slash in .stignore ?

Hi, the .stignore will ignore all content but not the folder itself if the pattern ends with a trailing slash ? I wonder what is real the use case of this ?

For example in .gitignore the trailing slash is used to match only dir but not file. This behaviour is then not present in .stignore.

Yeah, Syncthing still matches files even with the trailing slash.

One possible use case would be if you wanted to keep the directory structure, but ignore everything below it. For example, ignoring /*/ in the folder root will sync all files and folders on that level, but nothing from any subfolders.

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