How do I create directories in the local file system?

John Zukowski

The File class includes mkdir() and mkdirs() methods that should help you. mkdir() will only make the file as a directory, at the last level. What mkdirs() does is create all parent directories, too, if they do not exist.