Trait/Object

io.scalajs.npm.mkdirp

Mkdirp

Related Docs: object Mkdirp | package mkdirp

Permalink

trait Mkdirp extends Object

mkdirp - Recursively mkdir, like mkdir -p

Annotations
@RawJSType() @native()
See also

https://www.npmjs.com/package/mkdirp

Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Mkdirp
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def apply(path: String, options: |[MkdirpOptions, RawOptions], callback: MkdirpCallback): Unit

    Permalink

    Create a new directory and any necessary subdirectories at dir with octal permission string opts.mode.

    Create a new directory and any necessary subdirectories at dir with octal permission string opts.mode. If opts is a non-object, it will be treated as the opts.mode.

    If opts.mode isn't specified, it defaults to 0777 & (~process.umask()).

    cb(err, made) fires with the error or the first directory made that had to be created, if any.

    You can optionally pass in an alternate fs implementation by passing in opts.fs. Your implementation should have opts.fs.mkdir(path, mode, cb) and opts.fs.stat(path, cb).

    path

    the directory path

    options

    the optional settings

    callback

    the callback/error handler

    Example:
    1. mkdirp(dir, opts, cb)
  5. def apply(path: String, callback: MkdirpCallback): Unit

    Permalink

    Create a new directory and any necessary subdirectories at dir with octal permission string opts.mode.

    Create a new directory and any necessary subdirectories at dir with octal permission string opts.mode. If opts is a non-object, it will be treated as the opts.mode.

    If opts.mode isn't specified, it defaults to 0777 & (~process.umask()).

    cb(err, made) fires with the error or the first directory made that had to be created, if any.

    You can optionally pass in an alternate fs implementation by passing in opts.fs. Your implementation should have opts.fs.mkdir(path, mode, cb) and opts.fs.stat(path, cb).

    path

    the directory path

    callback

    the callback/error handler

    Example:
    1. mkdirp(dir, opts, cb)
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  19. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  20. def sync(path: String, options: |[MkdirpOptions, RawOptions] = js.native): String

    Permalink

    Synchronously create a new directory and any necessary subdirectories at dir with octal permission string opts.mode.

    Synchronously create a new directory and any necessary subdirectories at dir with octal permission string opts.mode. If opts is a non-object, it will be treated as the opts.mode.

    If opts.mode isn't specified, it defaults to 0777 & (~process.umask()).

    Returns the first directory that had to be created, if any.

    You can optionally pass in an alternate fs implementation by passing in opts.fs. Your implementation should have opts.fs.mkdirSync(path, mode) and opts.fs.statSync(path).

    path

    the directory path

    options

    the optional settings

    Example:
    1. mkdirp.sync(dir, options)
  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. 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