TransparencyToolkit/DirCrawl

Name: DirCrawl

Owner: Transparency Toolkit

Description: Runs block of code on every file in directory

Created: 2016-01-28 17:59:31.0

Updated: 2016-11-09 06:28:48.0

Pushed: 2017-05-28 19:30:58.0

Homepage: null

Size: 28

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

DirCrawl

This crawls a directory of files and runs a block of code on each file. It writes the output to a JSON with all the output as well as a single file (which the parser can then reuse parts of).

Installing
install dircrawl
Running
  1. Make blocks of the code you want to run and a block for including that code.
k = lambda do |file, num1, num2|
= File.read(file)
= TestParser.new(f, num1, num2)
run


ude = lambda do
ad 'test_parser.rb'

  1. Call dircrawl-
DirCrawl.new("/input/path", "/output/path", "ignore files including",
k, include, debug mode, cm_hash or nil, "args for", "block")
 d.get_output

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.