Class RequireFilesExist

    • Constructor Detail

      • RequireFilesExist

        public RequireFilesExist()
    • Method Detail

      • osIndependentNameMatch

        private boolean osIndependentNameMatch​(java.io.File file,
                                               boolean defaultValue)
        OSes like Windows are case insensitive, so this method will compare the file path with the actual path. A simple File.exists() is not enough for such OS.
        Parameters:
        file - the file to verify
        defaultValue - value to return in case an IO exception occurs, should never happen as the file already exists
        Returns: