code: public TempDir createTempDir(String originalName) throws IOException {
          if (!open.get()) {
              throw VFSMessages.MESSAGES.tempFileProviderClosed();
          }
          final String name = createTempName(originalName + "-", "");
          final File f = new File(providerRoot, name);
          for (int i = 0; i < RETRIES; i++) {
              if (f.mkdirs()) {
                  return new TempDir(this, f);
              }
          }
          throw VFSMessages.MESSAGES.couldNotCreateDirectory(originalName,RETRIES);
      }
docs: Create a temp directory, into which temporary files may be placed.
  
  @param originalName the original file name
  @return the temp directory
  @throws IOException for any error