-
Notifications
You must be signed in to change notification settings - Fork 16
/
deno_walk.deno.txt
29 lines (20 loc) · 2.02 KB
/
deno_walk.deno.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DENO_WALK
ALTERNATIVES ==> #See readdirp
VERSION ==> #Part of Deno
std/fs/walk.ts
walk(DIR_UPATH[, OPTS])
->WALK_ENTRY_ASYNC_ITERABLETOR #Iterate over DIR/** (including DIR itself)
walkSync(...) #Same but sync
OPTS.match|skip #REGEXP_ARR. Only include|exclude those files
OPTS.exts #'.EXT'_ARR. Only include files with those extensions
OPTS.includeFiles #BOOL (def: true). Include regular files
OPTS.includeDirs #BOOL (def: true). Include directories
OPTS.includeSymlinks #BOOL (def: true). Include symlinks. Noop if OPTS.followSymlinks true
OPTS.maxDepth #NUM (def: Infinity)
OPTS.followSymlinks #BOOL (def: false)
WALK_ENTRY.path #'PATH', absolute|relative depending on whether DIR_UPATH is
WALK_ENTRY.name
WALK_ENTRY.isFile|isDirectory
|isSymlink #Like DIR_ENTRY.* (see Deno.readDir())