FileUtils

object FileUtils
class Object
trait Matchable
class Any

Type members

Classlikes

case class GetContentsException(path: Path) extends NoSuchFileException with NoStackTrace

Value members

Concrete methods

def formatLines(cs: CharSequence): String

Format a char sequence including the line numbers

Format a char sequence including the line numbers

Returns:

String with the line numbers of the char sequence

def getContents(path: Path): IO[String]

Gets the contents of a file

Gets the contents of a file

Value parameters:
fileName

name of the file

def getFileFromFolderWithExt(path: String, name: String, ext: String): IO[File]
def getFileFromFolderWithSameExt(file: File, oldExt: String, newExt: String): IO[File]
def getFilesFromFolderWithExt(path: String, ext: String, ignoreFiles: List[String]): IO[List[File]]
def getStream(fileName: String): Either[String, InputStreamReader]
def writeFile(name: String, contents: String): IO[Unit]

Write contents to a file

Write contents to a file

Value parameters:
contents

contents to write to the file

name

name of the file

Concrete fields