[sf.net upstream] Add path filtering