This is a feature request. Modules have access to various information about
their input, e.g. file name ($input), file prefix ($input.prefix). As far as I
know, there is no built-in way to determine the type of input.
One way to achieve this is the following:
process_file = {
def ext = (input =~ /\.([^\.]*)$/)[0][1]
// Do something
// ...
}
It would be great if one could simply call $input.ext or a similar shortcut.
Original issue reported on code.google.com by florent....@gmail.com on 14 Mar 2014 at 5:51
Original issue reported on code.google.com by
florent....@gmail.com
on 14 Mar 2014 at 5:51