Simplify non-empty filename method signature