over

object over

Similar to os.write, except if the file already exists this over-writes the existing file contents. You can also pass in truncate = false to avoid truncating the file if the new contents is shorter than the old contents, and an offset to the file you want to write to.

class Object
trait Matchable
class Any
over.type

Value members

Concrete methods

def apply(target: Path, data: Source, perms: PermSet, offset: Long, createFolders: Boolean, truncate: Boolean): Unit
def outputStream(target: Path, perms: PermSet, createFolders: Boolean): OutputStream

Open a java.io.OutputStream to write to the given file

Open a java.io.OutputStream to write to the given file