over

os.write.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.

Attributes

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

Members list

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

Attributes