public File createNewFolder(File containingDir) throws IOException {
	if (containingDir == null) {
	    throw new IOException("Containing directory is null:");
	}
        
	File newFolder = null;
	// Using NT's default folder name
	newFolder = createFileObject(containingDir, "New Folder");
	int i = 2;
	while (newFolder.exists() && (i < 100)) {
	    newFolder = createFileObject(containingDir, "New Folder (" + i + ")");
	    i++;
	}

	if (newFolder.exists()) {
            throw new IOException("Directory already exists:" +
                newFolder.getAbsolutePath());
	} else {
	    newFolder.mkdirs();
	}

	return newFolder;
    }