private static boolean isCaseSensitive()

in apache-rat-core/src/main/java/org/apache/rat/document/DocumentName.java [345:376]


        private static boolean isCaseSensitive(final FileSystem fileSystem) {
            boolean isCaseSensitive = false;
            Path nameSet = null;
            Path filea = null;
            Path fileA = null;
            try {
                try {
                    Path root = fileSystem.getPath("");
                    nameSet = Files.createTempDirectory(root, "NameSet");
                    filea = nameSet.resolve("a");
                    fileA = nameSet.resolve("A");
                    Files.createFile(filea);
                    Files.createFile(fileA);
                    isCaseSensitive = true;
                } catch (IOException e) {
                    // do nothing
                } finally {
                    if (filea != null) {
                        Files.deleteIfExists(filea);
                    }
                    if (fileA != null) {
                        Files.deleteIfExists(fileA);
                    }
                    if (nameSet != null) {
                        Files.deleteIfExists(nameSet);
                    }
                }
            } catch (IOException e) {
                // do nothing.
            }
            return isCaseSensitive;
        }