Last active
August 29, 2015 14:21
-
-
Save rbobillot/5f47e929b00c036e27af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Java est tellement puissant !!! Et Scala <3