Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a new folder?

Tags:

java

scala

Or more specifically, how to create a new folder with a random name in scala?

In Java the code was this:

  val folderPath: Path = Paths.get("src/test/resources/test-documents/")
  val tmpDir: Path = Files.createTempDirectory(folderPath, null)

thanks to all

like image 336
YoBre Avatar asked May 20 '26 00:05

YoBre


1 Answers

The same calls will work in Scala. All of the Java APIs are interoperable.

like image 132
joescii Avatar answered May 21 '26 15:05

joescii