summaryrefslogtreecommitdiff
path: root/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'client.rb')
-rw-r--r--client.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/client.rb b/client.rb
index efc2f6d..75464c1 100644
--- a/client.rb
+++ b/client.rb
@@ -140,6 +140,9 @@ end
get path, provides: 'html' do
protected!
@dir = path.sub('/', '')
+ # collection = DirI#
+ # collection = Dir[File.join(@dir, 'object','*', '*.json')].collect { |f| JSON.parse(File.read(f)) }
+
@collection = Dir[File.join(@dir, 'create', '*.json')].collect { |f| JSON.parse(File.read(f))['object'] }
@collection += Dir[File.join(@dir, 'announce', '*.json')].collect { |f| JSON.parse(File.read(f))['object'] }
@threads = []