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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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).
install dircrawl
k = lambda do |file, num1, num2|
= File.read(file)
= TestParser.new(f, num1, num2)
run
ude = lambda do
ad 'test_parser.rb'
DirCrawl.new("/input/path", "/output/path", "ignore files including",
k, include, debug mode, cm_hash or nil, "args for", "block")
d.get_output