Java Path File Move mio moveFile(Path from, Path to)

Here you can find the source of moveFile(Path from, Path to)

Description

move File

License

Apache License

Declaration

public static void moveFile(Path from, Path to) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

import java.nio.file.StandardCopyOption;

public class Main {
    public static void moveFile(Path from, Path to) throws IOException {
        Files.move(from, to, StandardCopyOption.REPLACE_EXISTING);
    }/*from w  w  w  . j a v a  2s.c  o m*/
}

Related

  1. move(Path from, Path to)
  2. move(Path source, Path destination)
  3. moveDirectory(Path srcPath, Path destPath)
  4. moveFile(Path source, Path target)
  5. moveFile(Path source, Path target, boolean prompt)
  6. moveFile(Path tempPath, Path defPath)
  7. moveFile(String pathBefore, String pathAfter)