Class: Libis::Format::FileTool
Instance Method Summary
collapse
bad_mimetype, run, run_dir, run_list
Instance Method Details
#run(file) ⇒ Object
34
35
36
37
38
39
40
|
# File 'lib/libis/format/file_tool.rb', line 34
def run(file)
output = runner(file)
process_output(output)
end
|
#run_dir(dir, recursive = true) ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/libis/format/file_tool.rb', line 20
def run_dir(dir, recursive = true)
filelist = find_files(dir, recursive)
create_list_file(filelist) do |list_file|
output = runner(nil, '--files-from', list_file)
process_output(output)
end
end
|
#run_list(filelist) ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/libis/format/file_tool.rb', line 8
def run_list(filelist)
create_list_file(filelist) do |list_file|
output = runner(nil, '--files-from', list_file)
process_output(output)
end
end
|