commit 3e3636b8d8f0aac26dd05ea513040674baf3f8f5 Author: iwakeh iwakeh@torproject.org Date: Tue May 9 15:17:07 2017 +0000
Extended JavaDoc explanation. Part of task-22190. --- src/main/java/org/torproject/descriptor/DescriptorCollector.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/torproject/descriptor/DescriptorCollector.java b/src/main/java/org/torproject/descriptor/DescriptorCollector.java index 1ec0a62..fb0668c 100644 --- a/src/main/java/org/torproject/descriptor/DescriptorCollector.java +++ b/src/main/java/org/torproject/descriptor/DescriptorCollector.java @@ -45,8 +45,10 @@ public interface DescriptorCollector { * e.g., {@code "https://collector.torproject.org%22%7D * @param remoteDirectories Remote directories to collect descriptors * from, e.g., - * {@code "/recent/relay-descriptors/server-descriptors/"}, without - * processing subdirectories unless they are explicitly listed + * {@code "recent/relay-descriptors/server-descriptors"}, without + * processing subdirectories unless they are explicitly listed. + * Leading and trailing slashes will be ignored, i.e., {@code "/abc/xyz/"} + * results in the same downloads as {@code "abc/xyz"}. * @param minLastModified Minimum last-modified time in milliseconds of * files to be collected, or 0 for collecting all files * @param localDirectory Directory where collected files will be written