Atom.workspace.scan does not work?


#1

Hi,
i’m building a package and i use atom.workspace.scan on project path, but probably it doesn’t work.

Code:

regex = new RegExp(/python/,‘i’);
options = new Object();
options.paths = ["/path/of/files"];
atom.workspace.scan(regex, options, function(result, error) {
console.log(“Found”);
});

if i not use options parameter, it works. Am I doing something wrong?