Android File Rename mark(String pathName, String tag)

Here you can find the source of mark(String pathName, String tag)

Description

mark

Declaration


public static boolean mark(String pathName, String tag) 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {

    public static boolean mark(String pathName, String tag) {

        if (pathName != null & tag != null) {

            File arch = new File(pathName);
            File newArch = new File(pathName + tag);

            arch.renameTo(newArch);/*  ww  w  . j a  va 2 s . c o  m*/

            return true;
        }
        return false;
    }
}

Related

  1. rename(File file1, File file2)
  2. rename(File fromFile, File toFile)
  3. rename(String from, String to)
  4. rename(String oldName, String newName)