object IOUtils
- Alphabetic
- By Inheritance
- IOUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extension(path: String): Option[String]
Get an extension on a file or None.
-
def
fexists(path: String): Boolean
Returns true if the file exists, false otherwise.
Returns true if the file exists, false otherwise. Synchronous.
-
def
filename(path: String): Option[String]
Get the filename (base + ext) if it exists.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromBase64(s: String): Buffer
Convert string from base64.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getPostfix(path: String): Option[String]
Get the extension/postfix on a filename less the preceeding ".".
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
namepart(path: String): Option[String]
Get the base(name) + extension.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pathjoin(lhs: String, rhs: String): String
Join two path segments.
-
def
pprint(o: Dynamic): String
Pretty print a js.Dynamic object.
-
def
pprint(o: Object, opts: InspectOptions = ...): String
Pretty print a js.Object
-
def
render(o: Any, opts: InspectOptions = ...): String
Render a js.Any into a string using nodejs Inspect.
-
def
slurp(file: String, encoding: String = "utf8"): String
Slurp a file as a utf8 string, synchronous, full read into memory.
-
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
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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.
-
def
writeToFileSync(path: String, content: |[String, Buffer]): Unit
Write to file synchronously.