Skip to content

Instantly share code, notes, and snippets.

@rbobillot
Last active August 29, 2015 14:21
Show Gist options
  • Save rbobillot/5f47e929b00c036e27af to your computer and use it in GitHub Desktop.
Save rbobillot/5f47e929b00c036e27af to your computer and use it in GitHub Desktop.
import java.io.File
/*
* list files in "/"
*/
new File("/").listFiles.sortWith( _.toString < _.toString ).map(println)
/*
* make directory
*/
val tmpRep = new File( "/tmp/tmpRep" )
if ( ! tmpRep.exists ) tmpRep.mkdir
@rbobillot
Copy link
Author

Java est tellement puissant !!! Et Scala <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment