summaryrefslogtreecommitdiff
path: root/fs/glob.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-03-02 20:56:19 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-03-02 14:56:19 -0500
commitc131b8f3b6664dfa69d80c2643b3261540b58fd7 (patch)
tree897e89ca7d5a4e02cb87d24a027e1f8cacbcaf39 /fs/glob.ts
parent2db147a0018b591c5039acf2b75706d960b1dec3 (diff)
Glob integration for the FS walker (denoland/deno_std#219)
Original: https://github.com/denoland/deno_std/commit/0c3ba838fa7e74a859d2a6dbfec3941a521c7988
Diffstat (limited to 'fs/glob.ts')
-rw-r--r--fs/glob.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/glob.ts b/fs/glob.ts
new file mode 100644
index 000000000..1031bd75d
--- /dev/null
+++ b/fs/glob.ts
@@ -0,0 +1,6 @@
+import { FileInfo } from "deno";
+import { globrex, GlobOptions } from "./globrex.ts";
+
+export function glob(glob: string, options: GlobOptions = {}): RegExp {
+ return globrex(glob, options).regex;
+}