new File("/path/directory").mkdirs();
Here “directory” is the name of the directory you want to create/exist.
More Related Contents:
- How to read all files in a folder from Java?
- How to create a temporary directory/folder in Java?
- Copying files from one directory to another in Java
- Getting the filenames of all files in a folder [duplicate]
- How can I access a folder inside of a resource folder from inside my jar File?
- java.util.zip – Recreating directory structure
- Counting the number of files in a directory using Java
- Make a File/Folder Hidden on Windows with Java
- How to create a folder in Java?
- Java JTree directory structure from file paths
- how to zip a folder itself using java
- Create whole path automatically when writing to a new file
- How to scan a folder in Java?
- Maven – how to include empty directories
- Using bash, how do you make a classpath out of all files in a directory?
- Get location of JAR file
- FileUriExposedException in Android [duplicate]
- Find files in a folder using Java
- Java – Search for files in a directory
- list all files from directories and subdirectories in Java
- Directory listener in Java
- Difference between mkdir() and mkdirs() in java for java.io.File [closed]
- deleting folder from java [duplicate]
- Java Package Vs Folder-Structure? what is the difference
- directories in a zip file when using java.util.zip.ZipOutputStream
- Difference between Package and Directory in Java
- How to load a folder from a .jar?
- Writing to a file errors – Android Studio
- Sort a two dimensional array based on one column
- Check if a given time lies between two times regardless of date