Java Rename File renameFile(String src_pathname, String dest_pathname)

Here you can find the source of renameFile(String src_pathname, String dest_pathname)

Description

rename File

License

Open Source License

Declaration

public static boolean renameFile(String src_pathname,
            String dest_pathname) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static boolean renameFile(String src_pathname,
            String dest_pathname) {
        File src_file = new File(src_pathname);
        return src_file.renameTo(new File(dest_pathname));
    }/*w  ww .  j  a va  2s .c o  m*/
}

Related

  1. renameExcludedFiles(File existingBinaryFolder, Collection excludedBids)
  2. renameExistingWithRetries(final File fromFile, final File toFile)
  3. renameFile(File src, File dest)
  4. renameFile(String source, String dest)
  5. renameFile(String sourcePath, String targetPath)
  6. renameFileFromChinese(File file)
  7. renameFileHard(File srcFile, File destFile)
  8. renameFileIfExists(File f)
  9. renameFileOnWindows(File oldFile, File newFile)