Include/Ignore more specific patterns

Get help for specific problems
Posts: 2
Joined: 23 May 2022

AdamActual

Hi there!

I'm currently trying to sync a number of directories via a batch file. Every file and directory in the source directory have a meta file. e.g.:
ADirectory/
ADirectory.meta
aFile.txt
aFile.txt.meta
I am looking to sync the meta files for files only, in a .gitignore I can do this with:
*.meta
!*.*.meta
This negating pattern doesn't appear to work in FFS, and the Ignore pattern isn't overridden by the more specific Include pattern.

Is there a solution to this outside of duplicating the batch file where one processes everything except .meta files, and the second processes only .meta files?

Thanks!