Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
|
|
@ -0,0 +1 @@
|
|||
new java.io.File("/path/to/dir").mkdirs
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
import java.io.File
|
||||
|
||||
def mkdirs(path: List[String]) = // return true if path was created
|
||||
path.tail.foldLeft(new File(path.head)){(a,b) => a.mkdir; new File(a,b)}.mkdir
|
||||
|
||||
mkdirs(List("/path", "to", "dir"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue