Path.createFile() and Path.createDirectory() throw NoSuchFileException if parent doesn't exist (Windows)

Vince Bonfanti vbonfanti at gmail.com
Tue Aug 25 11:33:27 PDT 2009


I notice that on Windows both Path.createFile() and
Path.createDirectory() throw a NoSuchFileException if their parent
directory doesn't exist. Is this expected behavior for all file
systems, or is it optional for a file system to create the parent
directories if they don't exist? In either case, it should documented
in the Javadocs.

Vince


More information about the nio-discuss mailing list