This commit is contained in:
Klaus Meinhardt
2018-09-13 09:34:13 +02:00
parent 6542612ed3
commit c8154081b1
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -5,7 +5,7 @@ const Glob = glob.Glob;
const pattern = "test/a/**/[cg]/../[cg]";
console.log(pattern);
const mg = new Glob(pattern, {mark: true, sync: true}, (er, matches) => {
const mg = new Glob(pattern, {mark: true, sync: true, symlinks: {"test/a/foo": true}}, (er, matches) => {
if (er) {
console.error(er);
return;
@@ -28,3 +28,6 @@ const Glob = glob.Glob;
});
console.log("after");
})();
glob.sync('/foo/*', {realpath: true, realpathCache: {'/foo/bar': '/bar'}, ignore: '/foo/baz'});
glob.sync('/*', {nodir: true, cache: {'/': ['bar', 'baz']}, statCache: {'/foo/bar': false, '/foo/baz': {isDirectory() { return true; }}}});
+1 -1
View File
@@ -47,7 +47,7 @@ declare namespace G {
nocase?: boolean;
matchBase?: any;
nodir?: boolean;
ignore?: string | string[]
ignore?: string | string[];
follow?: boolean;
realpath?: boolean;
nonegate?: boolean;