code: public boolean createNewFile() throws IOException
    {
      synchronized (LOCK) {
        if (! exists()) {
          clearStatusCache();
          WriteStreamOld s = openWrite();
          s.close();
          return true;
        }
      }
  
      return false;
    }
docs: Creates the file named by this Path and returns true if the
  file is new.