class DotFileUtils {

    public static Path undot(final Path path) {
        if (!path.getFileName().toString().startsWith(".")) {
            return path;
        }
        return path.resolveSibling(path.getFileName().toString().substring(1));
    }

    private  DotFileUtils();

}