check for ftype as file so that fifo can be handled