List of usage examples for java.nio.file.spi FileSystemProvider deleteIfExists
public boolean deleteIfExists(Path path) throws IOException
From source file:org.sakuli.AbstractLogAwareTest.java
public static void deleteFile(Path logFile) { FileSystemProvider provider = logFile.getFileSystem().provider(); try {/*from w ww . ja v a2s . co m*/ provider.deleteIfExists(logFile); } catch (IOException e) { //do nothing } }