Android File Rename rename(String from, String to)

Here you can find the source of rename(String from, String to)

Description

rename

Declaration

public static File rename(String from, String to) 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {
    public static File rename(String from, String to) {
        File file = new File(from);
        file.renameTo(new File(to));
        return file;
    }// w w  w  .java  2s .  c  o  m
}

Related

  1. mark(String pathName, String tag)
  2. rename(File file1, File file2)
  3. rename(File fromFile, File toFile)
  4. rename(String oldName, String newName)
  5. renameAs(String pathDir, String name, String wishName)
  6. renameFile(File source, File dest)
  7. renameFile(String origPath, String destPath)