Java Directory 존재여부 체크 및 생성
File의 exists(), isDirectory() 사용import java.io.File;public class DirectoryCheck { public static void main(String[] args) { // Specify the directory path String directoryPath = "/path/to/directory"; // Create a File object for the specified path File directory = new File(directoryPath); // Check if the path exists and is a directory if (directory.exist..
2024.11.30