title: NoSuchFileException when creating a file using nio
body: <p>I am trying to create a new file using java nio, and I'm running into a createFile error. Error looks like this:</p>
  
  <pre><code> createFile error: java.nio.file.NoSuchFileException: /Users/jchang/result_apache_log_parser_2015/06/09_10:53:49
  </code></pre>
  
  <p>code segment looks like this:</p>
  
  <pre><code> String filename = "/Users/jchang/result_apache_log_parser_" + filename_date;
          Path file = Paths.get(filename);
          try {
              Files.createFile(file);
          } catch (FileAlreadyExistsException x) {
              System.err.format("file named %s" +
                      " already exists%n", file);
          } catch (IOException x) {
              System.err.format("createFile error: %s%n", x);
          }
  </code></pre>
  
  <p>Anyone have any idea how to fix this? Thanks for your help!</p>