Code example for Path

Methods: toFile

0
 
	private void addToMap(Path path) throws IOException {
		// add to fileTree 
		Path relativePath = root.relativize(path);
		 
		byte[] md5 = EncryptionUtil.generateMD5Hash(path.toFile());
		fileTree.put(relativePath.toString(), md5);
	} 
 
	public HashMap<String, byte[]> getFileTree() {
		return fileTree;
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java