public RepositoryFolder createFolder(String folderName, String user)
			throws InvalidNameException, IOException {
		synchronized (fileSystem) {
			repository.validate();
			repository.validateWritePrivilege(user);
			if (getFolder(folderName) != null) {
				throw new DuplicateFileException(folderName + " already exists");
			}
			fileSystem.createFolder(getPathname(), folderName);

			// Folder created notification causes RepositoryFolder instance to be added

			RepositoryFolder rf = getFolder(folderName);
			RepositoryManager.log(repository.getName(), rf.getPathname(), "folder created", user);
			return rf;
		}
	}
Create a new sub-folder within this folder and the associated directory on the local file-system.
@param folderName new sub-folder name
@param user user who is initiating request
@return new folder
@throws InvalidNameException if folder name is invalid
@throws DuplicateFileException if folder already exists with specified name
@throws IOException if an IO error occurs
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/store/RepositoryFolder.java