Sublime text - 排除根文件夹中的文件(但不包括其他任何地方)

Sublime text - Exclude file in root folder (but not anywhere else)

给定一个文件foo.html

我如何从项目的根文件夹中排除特定文件而不是其他任何地方?

我试过:

"file_exclude_patterns":[
    "foo.html" // ignores everywhere
]

"file_exclude_patterns":[
    "./foo.html" // does nothing
]

"file_exclude_patterns":[
    "/foo.html" // does nothing
]

我只能通过指定根文件夹的名称来做到这一点:

"file_exclude_patterns": ["project_folder/foo.html"]