code: public static DirectoryManager createDirectoryManager(String directory,
  			boolean readOnly) throws IOException {
  		return createDirectoryManager(Paths.get(directory), readOnly);
  	}
docs: Creates a new {@link DirectoryManager} for the given directory.
  
  @param directory
  the directory that the directory manager points to
  @param readOnly
  if false, the directory manager will attempt to create
  directories when changing to a location that does not exist
  @return the directory manager
  @throws IOException
  if there was an IO error constructing the directory manager