FileUtil

io.shiftleft.semanticcpg.utils.FileUtil
object FileUtil

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
FileUtil.type

Members list

Type members

Classlikes

implicit class PathExt(p: Path)

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def copyFiles(from: Path, to: Path): Unit
def delete(file: Path, swallowIoExceptions: Boolean, linkOptions: LinkOption): Unit
def deleteOnExit(file: Path, swallowIOExceptions: Boolean, linkOptions: LinkOption): Unit
def newTemporaryFile(prefix: String, suffix: String, parent: Option[Path]): Path
def usingTemporaryDirectory[T](prefix: String)(f: Path => T): T
def usingTemporaryFile[U](prefix: String, suffix: String, parent: Option[Path])(f: Path => U): U
def writeBytes(file: Path, content: Iterable[Byte], bufferSize: Int): Unit

Implicits

Implicits

final implicit def PathExt(p: Path): PathExt