3
Làm thế nào để tạo một tệp mới cùng với các thư mục mẹ bị thiếu?
Khi đang sử dụng file.createNewFile(); Tôi nhận được ngoại lệ sau java.io.IOException: Parent directory of file does not exist: /.../pkg/databases/mydb Tôi tự hỏi liệu có createNewFile tạo các thư mục mẹ bị thiếu không?
98
java