Sublime Forum

Exclude API

#1

Hi, All.
I develop plugin, let’s say that I scan folders and files and extract some information from it.
But I need to skip files and folders which defined in ‘folder_exclude_patterns’ and ‘file_exclude_patterns’.

My question is how this exclude works in Sublime internally?
How to achieve same behavior in plugin? What python api to use (fnmatch.fnmatch)?

0 Likes