How can I create an empty folder in Java?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Use the mkdir method on the File class:
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#mkdir%28%29
Better to use
mkdirs
as:mkdirs
: also create parent directories if these do not exist.ps: don't forget the ending
/
that shows explicitly you want to make a directory.