Here you can find the source of getConfigurationFilePath(String name)
public static Path getConfigurationFilePath(String name)
//package com.java2s; //License from project: Apache License import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Optional; import java.util.stream.Stream; public class Main { public static Path getConfigurationFilePath(String name) { return getConfigurationDirectoryPath().resolve(name); }// w w w . j av a 2s. c o m public static Path getConfigurationDirectoryPath() { Path homeDirectory = Paths.get(System.getProperty("user.home")); Path defaultConfigurationDirectory = homeDirectory.resolve(".perspective"); Optional<Path> configurationDirectoryCandidate = Stream .of(homeDirectory.resolve(".config").resolve("perspective"), defaultConfigurationDirectory) .filter(p -> Files.exists(p)).findFirst(); return configurationDirectoryCandidate.isPresent() ? configurationDirectoryCandidate.get() : defaultConfigurationDirectory; } }