Here you can find the source of exists(Path value)
Parameter | Description |
---|---|
value | a parameter |
public static boolean exists(Path value)
//package com.java2s; //License from project: Apache License import java.nio.file.Files; import java.nio.file.Path; public class Main { /**//from www .j a va 2s . co m * Check path exists * * @param value * @return */ public static boolean exists(Path value) { return (value == null || !Files.exists(value)) ? false : true; } }