IStorage[] files = projectToCloneDir.listFiles();
for (int i = 0; i < files.length; i++) {
IStorage file = files[i];
String filename = file.getPath();
IPath path = new Path(filename);
if(file.isFile() && path.segmentCount() > 0 && path.segment(1).equals(IDavinciServerConstants.DOT_PROJECT)){
// Eclipse projects have a .project file. Don't copy the cloned project's .project file
// into the new project - if the new project is an Eclipse project, other code adds the .project file.
continue;
}else if(file.isDirectory() && file.getName().equals(IDavinciServerConstants.DOT_SETTINGS)){
IStorage destinationDir = projectDir.newInstance(projectDir, IDavinciServerConstants.DOT_SETTINGS);