I'll use `return /locales[\/\\].+\.ini$/.test(file.path) ? true : false;` both for Windows and Unix-like OS.