public static void transferFiles(Cons files, Keyword outputLanguage) {
    if (Stella.stringEqlP(Stella.rootSourceDirectory(), Stella.rootNativeDirectory())) {
      return;
    }
    { String flotsamfilename = "";
      String systemSubDirectory = (Stella.stringEqlP(((String)(Stella.$CURRENTSYSTEMDEFINITIONSUBDIRECTORY$.get())), "") ? "" : (((String)(Stella.$CURRENTSYSTEMDEFINITIONSUBDIRECTORY$.get())) + Stella.directorySeparatorString()));

      if (outputLanguage == Stella.KWD_JAVA) {
        flotsamfilename = Module.javaYieldFlotsamClassName(SystemDefinition.getCardinalModule(((SystemDefinition)(Stella.$CURRENTSYSTEMDEFINITION$.get()))));
      }
      { Object old$Module$000 = Stella.$MODULE$.get();
        Object old$Context$000 = Stella.$CONTEXT$.get();

        try {
          Native.setSpecial(Stella.$MODULE$, SystemDefinition.getCardinalModule(((SystemDefinition)(Stella.$CURRENTSYSTEMDEFINITION$.get()))));
          Native.setSpecial(Stella.$CONTEXT$, ((Module)(Stella.$MODULE$.get())));
          { StringWrapper f = null;
            Cons iter000 = files;

            for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
              f = ((StringWrapper)(iter000.value));
              { String filename = f.wrapperValue;
                Keyword type = Stella.classifyFileExtension(filename);
                String relativefilename = Stella.relativizeFileName(filename, Stella.rootSourceDirectory());
                String fromfilename = null;
                String tofilename = null;

                if (type == Stella.KWD_JAVA) {
                  if (Stella.stringEqlP(Stella.fileBaseName(filename), flotsamfilename)) {
                    {
                      Stella.STANDARD_WARNING.nativeStream.println("Warning: Native Java filename `" + flotsamfilename + "'");
                      Stella.STANDARD_WARNING.nativeStream.println(" conflicts with the Java catchall class' filename");
                    }
;
                  }
                }
                else {
                }
                fromfilename = Stella.rootSourceDirectory() + systemSubDirectory + filename;
                tofilename = Stella.makeFileName(relativefilename, type, true);
                if (!(Stella.fileYoungerThanP(tofilename, fromfilename) == Stella.TRUE_WRAPPER)) {
                  if (((Integer)(Stella.$TRANSLATIONVERBOSITYLEVEL$.get())).intValue() >= 1) {
                    {
                      System.out.println("Copying `" + fromfilename + "'");
                      System.out.println(" to `" + tofilename + "' ...");
                    }
;
                  }
                  Stella.copyFile(fromfilename, tofilename);
                }
              }
            }
          }

        } finally {
          Stella.$CONTEXT$.set(old$Context$000);
          Stella.$MODULE$.set(old$Module$000);
        }
      }
    }
  }