destinationDir.mkdirs();
IStorage libsSettingsSource = file.newInstance(file, IDavinciServerConstants.LIBS_SETTINGS);
IStorage libsSettingsDestination = destinationDir.newInstance(destinationDir, IDavinciServerConstants.LIBS_SETTINGS);
// Strip out the "WebContent/" string from the library paths in libs.settings before writing out to the template.
copyFileStripWebContent(libsSettingsSource, libsSettingsDestination);
}else if(file.isDirectory() && path.segmentCount() > 1 && path.segment(1).equals(IDavinciServerConstants.WEBCONTENT)){
// Copy the contents of WebContent/* into the base folder for the template
copyDirectory(file, templateDir);
}else if (file.isFile()) {
IStorage destination = templateDir.newInstance(templateDir, file.getName());
copyFile(file, destination);