Packages

object IOUtils

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IOUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def extension(path: String): Option[String]

    Get an extension on a file or None.

  9. def fexists(path: String): Boolean

    Returns true if the file exists, false otherwise.

    Returns true if the file exists, false otherwise. Synchronous.

  10. def filename(path: String): Option[String]

    Get the filename (base + ext) if it exists.

  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromBase64(s: String): Buffer

    Convert string from base64.

  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getPostfix(path: String): Option[String]

    Get the extension/postfix on a filename less the preceeding ".".

  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def namepart(path: String): Option[String]

    Get the base(name) + extension.

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def pathjoin(lhs: String, rhs: String): String

    Join two path segments.

  22. def pprint(o: Dynamic): String

    Pretty print a js.Dynamic object.

  23. def pprint(o: Object, opts: InspectOptions = ...): String

    Pretty print a js.Object

  24. def render(o: Any, opts: InspectOptions = ...): String

    Render a js.Any into a string using nodejs Inspect.

  25. def slurp(file: String, encoding: String = "utf8"): String

    Slurp a file as a utf8 string, synchronous, full read into memory.

  26. def slurpAsBase64(file: String): String

    Slurp a file as a base64 encoded string.

    Slurp a file as a base64 encoded string. Good for json upload bodies. Synchronous

  27. def slurpAsJson[T](file: String, reviver: Option[Reviver] = None, encoding: String = "utf8"): T

    Slurp a file as JSON and cast.

    Slurp a file as JSON and cast. No exception handling is provided. Synchronous.

  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  33. def writeToFile(path: String, content: |[String, Buffer])(implicit ec: ExecutionContext): IO[Unit]

    Async write content to file creating paths if path contains path segments that do not exist.

    Async write content to file creating paths if path contains path segments that do not exist.

    path

    Path name, both path and file.

    content

    String content.

    returns

    Unit if file written, otherwise a failed IO.

  34. def writeToFileSync(path: String, content: |[String, Buffer]): Unit

    Write to file synchronously.

Inherited from AnyRef

Inherited from Any

Ungrouped