Use more exact predicate when interacting with files