I'm trying to create a function that creates multiple folder/subfolders in a single instruction using Java.
I can use File's mkdirs() method to create a single folder and its parents.
An example of the struture I want:
folder
└── subfolder
├── subsubfolder1
├── subsubfolder2
└── subsubfolder3
For example in linux I can achieve this with the following command:
mkdir -p folder/subfolder/{subsubfolder1,subsubfolder2,subsubfolder3}
Is there a way I can achieve this in Java?