fatt: outputs an error if an input file is a directory