Here you can find the source of getPath(File dir, String filename)
Parameter | Description |
---|---|
contentDir | a parameter |
filename | a parameter |
public static Path getPath(File dir, String filename)
//package com.java2s; /*//from w ww . ja v a2 s . c o m * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://duracloud.org/license/ */ import java.io.File; import java.nio.file.FileSystems; import java.nio.file.Path; public class Main { /** * @param contentDir * @param filename * @return */ public static Path getPath(File dir, String filename) { Path path = FileSystems.getDefault().getPath(dir.getAbsolutePath(), filename); return path; } }