Lines Matching full:path

71 // you can also pass withFileTypes: true to get Path objects
73 // check out http://npm.im/path-scurry for more info on their API
75 g3.stream().on('data', path => {
77 'got a path object',
78 path.fullpath(),
79 path.isDirectory(),
80 path.readdirSync().map(e => e.name)
93 .map(path => path.fullpath())
96 .filter(path => path.mode & 0o040)
97 .map(path => path.fullpath())
138 **Note** Glob patterns should always use `/` as a path separator,
140 characters. If you wish to use `\` as a path separator _instead
227 --noglobstar Do not expand '**' against multiple path portions. Ie,
230 --windows-path-no-escape
231 Use '\' as a path separator *only*, and *never* as an
239 -r<root> --root=<root> A string path resolved against the 'cwd', which is used
253 path, you can use '--root=' to set it to the empty
271 ## `glob(pattern: string | string[], options?: GlobOptions) => Promise<string[] | Path[]>`
275 [Path](https://isaacs.github.io/path-scurry/classes/PathBase)
279 ## `globSync(pattern: string | string[], options?: GlobOptions) => string[] | Path[]`
297 ## `globStream(pattern: string | string[], options?: GlobOptions) => Minipass<string | Path>`
299 Return a stream that emits all the strings or `Path` objects and
304 ## `globStreamSync(pattern: string | string[], options?: GlobOptions) => Minipass<string | Path>`
346 `'\\*'` into `'*'`, because `\` is a path separator in
420 - `cwd` String path or `file://` string or URL object. The
425 This option may be eiher a string path or a `file://` URL
428 - `root` A string path resolved against the `cwd` option, which
438 pattern `/../*` with `{root:'/some/path'}` will return all
439 files in `/some`, not all files in `/some/path`. The pattern
440 `*` with `{root:'/some/path'}` will return all the entries in
441 the cwd, not the entries in `/some/path`.
444 path, you can use `{root:''}`. However, be aware that on
449 - `windowsPathsNoEscape` Use `\\` as a path separator _only_, and
455 with patterns constructed using `path.join()` and
456 `path.resolve()` on Windows platforms, mimicking the (buggy!)
472 - `dotRelative` Prepend all relative path strings with `./` (or
529 If an object is provided that has `ignored(path)` and/or
530 `childrenIgnored(path)` methods, then these methods will be
531 called to determine whether any Path is a match or if its
556 it only does string path resolution.
560 - `posix` Set to true to use `/` as the path separator in
562 Windows systems, this will return `/` delimited path results,
564 path form, eg insted of `'C:\\foo\\bar'`, it will return
571 - `withFileTypes` Return [PathScurry](http://npm.im/path-scurry)
572 `Path` objects instead of strings. These are similar to a
582 See [PathScurry docs](http://npm.im/path-scurry) for what can
585 - `scurry` A [PathScurry](http://npm.im/path-scurry) object used
599 Before parsing the path part patterns, braced sections are
606 a path portion. With the exception of `**`, none of these match
607 path separators (ie, `/` on all platforms, and `\` on Windows).
609 - `*` Matches 0 or more characters in a single path portion.
610 When alone in a path portion, it must match at least 1
612 match against a `.` character at the start of a path portion.
615 path portion.
623 characters. Similar to `*`, if alone in a path portion, then
624 the path portion must have at least one character.
633 - `**` If a "globstar" is alone in a path portion, then it
647 If a file or directory path portion has a `.` as the first
649 pattern's corresponding path part also has a `.` as its first
686 it is the only thing in a path part. That is, `a/**/b` will match
714 single path separator.
731 Though windows uses either `/` or `\` as its path separator, only
734 always be interpreted as escape characters, not path separators.
737 the root setting using `path.join`. On windows, this will by
749 non-magic path portions specified in the pattern.
752 an "absolute path" is somewhat more involved.
756 A UNC path may be used as the start of a pattern on Windows
762 UNC path roots are always compared case insensitively.
769 If the pattern starts with `/`, and is not a UNC path, and there
780 `path.resolve('/')`.)
883 - `..` path portions are not handled unless they appear at the