자바 File 클래스의 mkdir() & mkdirs()

  • osstech
    (열린기술자)
  • osstech's Avatar 이 글의 작성자
  • Offline
  • Junior
  • Junior
더보기
25 Apr 2016 23:16 #604 작성자: osstech
osstech 님의 글: 자바 File 클래스의 mkdir() & mkdirs()
1. mkdir()

Creates the directory named by this abstract pathname.

예: new File("C:\\Directory1").mkdir();


2. mkdirs()

Creates the directory named by this abstract pathname, including any necessary but nonexistent parent directories. Note that if this operation fails it may have succeeded in creating some of the necessary parent directories.

예: new File("C:\\Directory2\\Sub2\\Sub-Sub2").mkdirs()
Time to create page: 0.058 seconds
Powered by Kunena Forum