# exclude everything except directory foo/bar in subdir foobar
/foobar/*
!/foobar/foo
/foobar/foo/*
!/foobar/foo/bar