import java.io.File;
public class MakeDirs {
public static void main(String[] args) {
String dir = "/home/huanyu/Desktop/a/b/c/d/e";
File file = new File(dir);
System.out.println(file.mkdirs());
}
}
![img_339b8fde71031fb4b227ce34f30b44eb.png](https://yqfile.alicdn.com/img_339b8fde71031fb4b227ce34f30b44eb.png?x-oss-process=image/resize,w_1400/format,webp)
import java.io.File;
public class MakeDirs {
public static void main(String[] args) {
String dir = "/home/huanyu/Desktop/a/b/c/d/e";
File file = new File(dir);
System.out.println(file.mkdirs());
}
}