Here you can find the source of toPaths(File... files)
Parameter | Description |
---|---|
files | the files |
private static Iterable<Path> toPaths(File... files)
//package com.java2s; //License from project: Open Source License import java.io.File; import java.nio.file.Path; import java.util.ArrayList; import java.util.List; public class Main { /**/*from w w w . j av a2 s . co m*/ * Converts the given files to a sequence of paths. * * @param files the files * @return the paths */ private static Iterable<Path> toPaths(File... files) { List<Path> paths = new ArrayList<>(files.length); for (File file : files) { paths.add(file.toPath()); } return paths; } }