Newer
Older
osmCoverage / test / tools / Copy.java
@yuu yuu on 18 Nov 2018 561 bytes fixed: read REMOVED text file.
  1. package tools;
  2.  
  3. import java.io.File;
  4. import java.io.IOException;
  5. import java.nio.file.Files;
  6. import java.nio.file.Path;
  7. import java.nio.file.Paths;
  8.  
  9. public class Copy {
  10. /**
  11. * ファイルをコピーする
  12. *
  13. * @param source
  14. * @param dest
  15. * @throws IOException
  16. */
  17. public static void copyFile(File source, File dest) throws IOException {
  18. Path sourcePath = Paths.get(source.getAbsolutePath());
  19. Path targetPath = Paths.get(dest.getAbsolutePath());
  20. Files.copy(sourcePath, targetPath);
  21. }
  22. }