Stignore file syncing nothing

my stignore file is

!.mkv
!.mp4
*

In my directory foo/bar/test/myfiles/watched I have the the following

~/test1.txt
~/test1.mkv

my desired and expected behavior is that the:

~/test1.mkv is synced to the destination device, and ~/test1.txt is not synced. But nothing is syncing. What am I doing wrong?

You are allowing only two files named .mkv and .mp4. Try *.mkv: Ignoring Files

1 Like

My bad if my post wasn’t clear.

I want only the ~/test1.mkv to sync.

But neither the .txt nor .mkv files are syncing with my current stignore setup.

It only syncs when I update to

!.mkv
!.mp4
*.txt

But I don’t want to manage an exhaustive list of all the file types I don’t want to sync.

Again, what @239 tried to express.

!.mkv means “don’t ignore a file named .mkv”. You are looking for !*.mkv to say “don’t ignore all files ending with .mkv”.

Ahh okay thanks for the clarification. That worked!

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