Class

io.scalajs.npm.glob

GlobOptions

Related Doc: package glob

Permalink

class GlobOptions extends Object

Glob Options

Annotations
@ScalaJSDefined() @RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GlobOptions
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GlobOptions(cwd: UndefOr[String] = js.undefined, root: UndefOr[String] = js.undefined, dot: UndefOr[Boolean] = js.undefined, nomount: UndefOr[Boolean] = js.undefined, mark: UndefOr[Boolean] = js.undefined, nosort: UndefOr[Boolean] = js.undefined, stat: UndefOr[Boolean] = js.undefined, silent: UndefOr[Boolean] = js.undefined, strict: UndefOr[Boolean] = js.undefined, cache: UndefOr[Boolean] = js.undefined, statCache: UndefOr[Boolean] = js.undefined, symlinks: UndefOr[Boolean] = js.undefined, sync: UndefOr[Boolean] = js.undefined, nounique: UndefOr[Boolean] = js.undefined, nonull: UndefOr[Boolean] = js.undefined, debug: UndefOr[Boolean] = js.undefined, nobrace: UndefOr[Boolean] = js.undefined, noglobstar: UndefOr[Boolean] = js.undefined, noext: UndefOr[Boolean] = js.undefined, nocase: UndefOr[Boolean] = js.undefined, matchBase: UndefOr[Boolean] = js.undefined, nodir: UndefOr[Boolean] = js.undefined, ignore: UndefOr[|[String, Array[String]]] = js.undefined, follow: UndefOr[Boolean] = js.undefined, realpath: UndefOr[Boolean] = js.undefined, absolute: UndefOr[Boolean] = js.undefined)

    Permalink

    cwd

    The current working directory in which to search. Defaults to process.cwd().

    root

    The place where patterns starting with / will be mounted onto. Defaults to path.resolve(options.cwd, "/") (/ on Unix systems, and C:\ or some such on Windows.)

    dot

    Include .dot files in normal matches and globstar matches. Note that an explicit dot in a portion of the pattern will always match dot files.

    nomount

    By default, a pattern starting with a forward-slash will be "mounted" onto the root setting, so that a valid filesystem path is returned. Set this flag to disable that behavior.

    mark

    Add a / character to directory matches. Note that this requires additional stat calls.

    nosort

    Don't sort the results.

    stat

    Set to true to stat all results. This reduces performance somewhat, and is completely unnecessary, unless readdir is presumed to be an untrustworthy indicator of file existence.

    silent

    When an unusual error is encountered when attempting to read a directory, a warning will be printed to stderr. Set the silent option to true to suppress these warnings.

    strict

    When an unusual error is encountered when attempting to read a directory, the process will just continue on in search of other matches. Set the strict option to raise an error in these cases.

    cache

    See cache property above. Pass in a previously generated cache object to save some fs calls.

    statCache

    A cache of results of filesystem information, to prevent unnecessary stat calls. While it should not normally be necessary to set this, you may pass the statCache from one glob() call to the options object of another, if you know that the filesystem will not change between calls. (See "Race Conditions" below.)

    symlinks

    A cache of known symbolic links. You may pass in a previously generated symlinks object to save lstat calls when resolving ** matches.

    sync

    DEPRECATED: use glob.sync(pattern, opts) instead.

    nounique

    In some cases, brace-expanded patterns can result in the same file showing up multiple times in the result set. By default, this implementation prevents duplicates in the result set. Set this flag to disable that behavior.

    nonull

    Set to never return an empty set, instead returning a set containing the pattern itself. This is the default in glob(3).

    debug

    Set to enable debug logging in minimatch and glob.

    nobrace

    Do not expand {a,b} and {1..3} brace sets.

    noglobstar

    Do not match ** against multiple filenames. (Ie, treat it as a normal * instead.)

    noext

    Do not match +(a|b) "extglob" patterns.

    nocase

    Perform a case-insensitive match. Note: on case-insensitive filesystems, non-magic patterns will match by default, since stat and readdir will not raise errors.

    matchBase

    Perform a basename-only match if the pattern does not contain any slash characters. That is, *.js would be treated as equivalent to ** / *.js, matching all js files in all directories.

    nodir

    Do not match directories, only files. (Note: to match only directories, simply put a / at the end of the pattern.)

    ignore

    Add a pattern or an array of glob patterns to exclude matches. Note: ignore patterns are always in dot:true mode, regardless of any other settings.

    follow

    Follow symlinked directories when expanding ** patterns. Note that this can result in a lot of duplicate references in the presence of cyclic links.

    realpath

    Set to true to call fs.realpath on all of the results. In the case of a symlink that cannot be resolved, the full absolute path to the matched entry is returned (though it will usually be a broken symlink)

    absolute

    Set to true to always receive absolute paths for matched files. Unlike realpath, this also affects the values returned in the match event.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val absolute: UndefOr[Boolean]

    Permalink

    Set to true to always receive absolute paths for matched files.

    Set to true to always receive absolute paths for matched files. Unlike realpath, this also affects the values returned in the match event.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val cache: UndefOr[Boolean]

    Permalink

    See cache property above.

    See cache property above. Pass in a previously generated cache object to save some fs calls.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val cwd: UndefOr[String]

    Permalink

    The current working directory in which to search.

    The current working directory in which to search. Defaults to process.cwd().

  9. val debug: UndefOr[Boolean]

    Permalink

    Set to enable debug logging in minimatch and glob.

  10. val dot: UndefOr[Boolean]

    Permalink

    Include .dot files in normal matches and globstar matches.

    Include .dot files in normal matches and globstar matches. Note that an explicit dot in a portion of the pattern will always match dot files.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. val follow: UndefOr[Boolean]

    Permalink

    Follow symlinked directories when expanding ** patterns.

    Follow symlinked directories when expanding ** patterns. Note that this can result in a lot of duplicate references in the presence of cyclic links.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. val ignore: UndefOr[|[String, Array[String]]]

    Permalink

    Add a pattern or an array of glob patterns to exclude matches.

    Add a pattern or an array of glob patterns to exclude matches. Note: ignore patterns are always in dot:true mode, regardless of any other settings.

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  21. val mark: UndefOr[Boolean]

    Permalink

    Add a / character to directory matches.

    Add a / character to directory matches. Note that this requires additional stat calls.

  22. val matchBase: UndefOr[Boolean]

    Permalink

    Perform a basename-only match if the pattern does not contain any slash characters.

    Perform a basename-only match if the pattern does not contain any slash characters. That is, *.js would be treated as equivalent to ** / *.js, matching all js files in all directories.

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. val nobrace: UndefOr[Boolean]

    Permalink

    Do not expand {a,b} and {1..3} brace sets.

  25. val nocase: UndefOr[Boolean]

    Permalink

    Perform a case-insensitive match.

    Perform a case-insensitive match. Note: on case-insensitive filesystems, non-magic patterns will match by default, since stat and readdir will not raise errors.

  26. val nodir: UndefOr[Boolean]

    Permalink

    Do not match directories, only files.

    Do not match directories, only files. (Note: to match only directories, simply put a / at the end of the pattern.)

  27. val noext: UndefOr[Boolean]

    Permalink

    Do not match +(a|b) "extglob" patterns.

  28. val noglobstar: UndefOr[Boolean]

    Permalink

    Do not match ** against multiple filenames.

    Do not match ** against multiple filenames. (Ie, treat it as a normal * instead.)

  29. val nomount: UndefOr[Boolean]

    Permalink

    By default, a pattern starting with a forward-slash will be "mounted" onto the root setting, so that a valid filesystem path is returned.

    By default, a pattern starting with a forward-slash will be "mounted" onto the root setting, so that a valid filesystem path is returned. Set this flag to disable that behavior.

  30. val nonull: UndefOr[Boolean]

    Permalink

    Set to never return an empty set, instead returning a set containing the pattern itself.

    Set to never return an empty set, instead returning a set containing the pattern itself. This is the default in glob(3).

  31. val nosort: UndefOr[Boolean]

    Permalink

    Don't sort the results.

  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. val nounique: UndefOr[Boolean]

    Permalink

    In some cases, brace-expanded patterns can result in the same file showing up multiple times in the result set.

    In some cases, brace-expanded patterns can result in the same file showing up multiple times in the result set. By default, this implementation prevents duplicates in the result set. Set this flag to disable that behavior.

  35. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  36. val realpath: UndefOr[Boolean]

    Permalink

    Set to true to call fs.realpath on all of the results.

    Set to true to call fs.realpath on all of the results. In the case of a symlink that cannot be resolved, the full absolute path to the matched entry is returned (though it will usually be a broken symlink)

  37. val root: UndefOr[String]

    Permalink

    The place where patterns starting with / will be mounted onto.

    The place where patterns starting with / will be mounted onto. Defaults to path.resolve(options.cwd, "/") (/ on Unix systems, and C:\ or some such on Windows.)

  38. val silent: UndefOr[Boolean]

    Permalink

    When an unusual error is encountered when attempting to read a directory, a warning will be printed to stderr.

    When an unusual error is encountered when attempting to read a directory, a warning will be printed to stderr. Set the silent option to true to suppress these warnings.

  39. val stat: UndefOr[Boolean]

    Permalink

    Set to true to stat all results.

    Set to true to stat all results. This reduces performance somewhat, and is completely unnecessary, unless readdir is presumed to be an untrustworthy indicator of file existence.

  40. val statCache: UndefOr[Boolean]

    Permalink

    A cache of results of filesystem information, to prevent unnecessary stat calls.

    A cache of results of filesystem information, to prevent unnecessary stat calls. While it should not normally be necessary to set this, you may pass the statCache from one glob() call to the options object of another, if you know that the filesystem will not change between calls. (See "Race Conditions" below.)

  41. val strict: UndefOr[Boolean]

    Permalink

    When an unusual error is encountered when attempting to read a directory, the process will just continue on in search of other matches.

    When an unusual error is encountered when attempting to read a directory, the process will just continue on in search of other matches. Set the strict option to raise an error in these cases.

  42. val symlinks: UndefOr[Boolean]

    Permalink

    A cache of known symbolic links.

    A cache of known symbolic links. You may pass in a previously generated symlinks object to save lstat calls when resolving ** matches.

  43. val sync: UndefOr[Boolean]

    Permalink

    DEPRECATED: use glob.sync(pattern, opts) instead.

  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  46. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  47. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  48. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped