Skip to content
Yet another IO library (in scala). Like better-files, but probably not as good, and using java.nio
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
src
travis
.gitignore
.sbtopts
.scalafmt.conf
.travis.yml
README.md
build.sbt
version.sbt

README.md

EIE

sbt test cucumber

'EIE' is yet another IO project, written in scala. It's inspiration is from utilities in e.g. apache-commons and better-files (both good libraries).

It's mostly useful for pimping java.nio.Path, and providing the ToBytes and FromBytes type-classes, and exposing some other basic DAO operations on a file system.

You can read more about the design and check the documentation here

Usage

libraryDependencies += "com.github.aaronp" %% "eie" % "0.0.3"

in maven:

<dependency>
  <groupId>com.github.aaronp</groupId>
  <artifactId>eie_2.12</artifactId>
  <version>0.0.3</version>
</dependency>

And then:

  import eie.io._

  val file: Path = "my/file.txt".asPath.text = "hello world!"

  val contents: String = file.text

  file.delete() // should return 'true'

Building

You can build/test/etc using the usual suspects:

sbt clean coveraget test coverageReport doc
You can’t perform that action at this time.