static bool isValidPath(String? path) { return path != null && path.isNotEmpty && Regs.path.hasMatch(path); }