Move index.json* files to index/ subdirectory.

Implements #20408.
This commit is contained in:
Karsten Loesing 2016-10-19 19:43:15 +02:00
parent 3121a2692c
commit 0397899166
3 changed files with 3 additions and 2 deletions

View File

@ -195,6 +195,7 @@ public class CreateIndexJson extends CollecTorMain {
}
private void writeIndex(IndexNode indexNode) throws IOException {
indexJsonFile.getParentFile().mkdirs();
Gson gson = new GsonBuilder().create();
String indexNodeString = gson.toJson(indexNode);
Writer[] writers = new Writer[] {

View File

@ -53,7 +53,7 @@ UpdateindexOffsetMinutes = 0
InstanceBaseUrl = https://collector.torproject.org
# The target location for index.json and its compressed
# versions index.json.gz, index.json.bz2, and index.json.xz
IndexPath = .
IndexPath = index
# The top-level directory for archived descriptors.
ArchivePath = archive
# The top-level directory for the recent descriptors that were

View File

@ -836,7 +836,7 @@ wget --recursive \ # turn on recursive retrieving
<h2 id="index-json" class="hover">Custom downloaders using provided <tt>index.json</tt>
<a href="#index-json" class="hover">#</a></h2>
<p>Another automated way to download descriptors is to develop a tool that uses the provided <a href="index.json"><tt>index.json</tt></a> file or one of its compressed versions <a href="index.json.gz"><tt>index.json.gz</tt></a>, <a href="index.json.bz2"><tt>index.json.bz2</tt></a>, or <a href="index.json.xz"><tt>index.json.xz</tt></a>.
<p>Another automated way to download descriptors is to develop a tool that uses the provided <a href="index/index.json"><tt>index.json</tt></a> file or one of its compressed versions <a href="index/index.json.gz"><tt>index.json.gz</tt></a>, <a href="index/index.json.bz2"><tt>index.json.bz2</tt></a>, or <a href="index/index.json.xz"><tt>index.json.xz</tt></a>.
These files contain a machine-readable representation of all descriptor files available on this site.
Index files use the following custom JSON data format that might still be extended at a later time:</p>
<ul>