add folder parameter to DirectoryAlreadyExists exception, and allow init_index to optionally clear the index