boolean (String inputString) { final List<String> fileNames = StringUtil.split(FileUtil.toSystemIndependentName(inputString), "/"); if (fileNames.isEmpty()) { return false; } for (String fileName : fileNames) { if (!PathUtil.isValidFileName(fileName)) { return false; } } return true; }