I think I must be missing something here. I have a directory containing lots of sub-directories with all sorts of files scattered thru it. I want to sync any markdown documents plus the whole directory structure (irrespective of whether a folder contains a markdown document or not). I feel like the following ignore patterns should accomplish this, but I can’t quite get it to work.
(?i)!*.md // include all markdown docs - works correctly
!/**/ // include all folders but not files
* // exclude all other files
I’ve played with the order and tried adding /**/*
, but either I manage to sync all files, or only markdown files and the folders that contain them. But what I want is all folders but only markdown files.
Just to make it clear, the following is the structure on computer A:
/
foo/
bar.md
baz.xlsx
foo1/
bar1.docx
baz1.html
and what I want synced to computer B is:
/
foo/
bar.md
foo1/
Am I just missing something really obvious, or is this just not possible?