/** * Writes a single OpenCms VFS file to the RFS export.<p> * * @param file the OpenCms VFS file to write * @param name the name of the file in the export * * @throws IOException in case of file access issues */ protected void writeFile2Rfs(CmsFile file, String name) throws IOException { String fileName = getRfsFileName(name); File rfsFile = new File(fileName); if (!rfsFile.getParentFile().exists()) { rfsFile.getParentFile().mkdirs(); } rfsFile.createNewFile(); FileOutputStream rfsFileOut = new FileOutputStream(rfsFile); rfsFileOut.write(file.getContents()); rfsFileOut.close(); }
/** * Writes a single OpenCms VFS file to the RFS export.<p> * * @param file the OpenCms VFS file to write * @param name the name of the file in the export * * @throws IOException in case of file access issues */ protected void writeFile2Rfs(CmsFile file, String name) throws IOException { String fileName = getRfsFileName(name); File rfsFile = new File(fileName); if (!rfsFile.getParentFile().exists()) { rfsFile.getParentFile().mkdirs(); } rfsFile.createNewFile(); FileOutputStream rfsFileOut = new FileOutputStream(rfsFile); rfsFileOut.write(file.getContents()); rfsFileOut.close(); }
m_exportPath = m_exportPath + "/"; String fileName = getRfsFileName(CmsImportExportManager.EXPORT_MANIFEST); File rfsFile = new File(fileName); rfsFile.getParentFile().mkdirs();
m_exportPath = m_exportPath + "/"; String fileName = getRfsFileName(CmsImportExportManager.EXPORT_MANIFEST); File rfsFile = new File(fileName); rfsFile.getParentFile().mkdirs();