Given project/one.txt and project/subdir/two.txt, paths will be the following
array:
['one.txt', 'subdir/', 'subdir/two.txt']
Directories come before their contents, and have a trailing forward-slash (on
all platforms).
Symlinks are followed.
Entries
Sometimes, it is important to get additional information from a walk of a
directory; for instance if the downstream consumer needs to stat the files we
can leverage the stats from the walk.
To accommodate, walkSync.entries(path [, options]) is also provided, instead
of returning a list of files and/or directories it returns an array of objects
which correspond to a given file or directory, except with more data.
As an alternative to string globs, you can pass an array of precompiled
minimatch.Minimatch
instances. This is faster and allows to specify your own globbing options.
directories (default: true): Pass false to only return files, not
directories:
As an alternative to string globs, you can pass an array of precompiled
minimatch.Minimatch
instances. This is faster and allows to specify your own globbing options.
includeBasePath (default: false): Pass true to include the basePath in the output.
note: this flag is only for walkSync(..) not walkSync.entries(..)