Skip to content

Instantly share code, notes, and snippets.

@lhohan
Created September 2, 2013 10:58
Show Gist options
  • Save lhohan/6411670 to your computer and use it in GitHub Desktop.
Save lhohan/6411670 to your computer and use it in GitHub Desktop.
import java.io.{File,FileInputStream,FileOutputStream}
val src = new File(args(0))
val dest = new File(args(1))
new FileOutputStream(dest) getChannel() transferFrom(
new FileInputStream(src) getChannel, 0, Long.MaxValue )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment