exfile v0.0.5 Exfile.Processor.Utilities

Summary

Functions

Takes a file and turns it in to a io unless it already is a io. Returns an open io

Takes a file and turns it in to a tempfile unless it already is a tempfile. Pass true as create_new_tempfile to force creation of a new tempfile. Returns a string containing the path to the tempfile

Functions

coerce_file_to_io(arg)

Takes a file and turns it in to a io unless it already is a io. Returns an open io.

coerce_file_to_tempfile(file, create_new_tempfile \\ false)

Takes a file and turns it in to a tempfile unless it already is a tempfile. Pass true as create_new_tempfile to force creation of a new tempfile. Returns a string containing the path to the tempfile.