lib/documentalist.rb in documentalist-0.1.3 vs lib/documentalist.rb in documentalist-0.1.4
- old
+ new
@@ -73,9 +73,11 @@
options[:from_format] = File.extname(file).gsub(/\./, "").to_sym
backend = backend_for_conversion(options[:from_format], options[:to_format])
backend.convert(file, options)
+ # TODO : that would fails removing the file since the input parameter gets overridden
+ # we'll live with it for now
if options[:input] and options[:input_format] and file.nil?
FileUtils.rm(file)
end
if options[:stream]