All the examples show scanning the default folder. The docs vaguely indicate that I can modify glob.options.cwd, but it doesn't seem to do the trick. Specifying an absolute folder like /users/Kristian/** doesn't work either. Am I supposed to run process.chdir() to scan a specific folder?
All the examples show scanning the default folder. The docs vaguely indicate that I can modify
glob.options.cwd
, but it doesn't seem to do the trick. Specifying an absolute folder like/users/Kristian/**
doesn't work either. Am I supposed to runprocess.chdir()
to scan a specific folder?