Android File Delete removeableFile(File folder, String fileName)

Here you can find the source of removeableFile(File folder, String fileName)

Description

removeable File

Declaration

private static File removeableFile(File folder, String fileName) 

Method Source Code

//package com.java2s;
import java.io.File;

public class Main {
    private static File removeableFile(File folder, String fileName) {
        File file = new File(folder, fileName);
        file.deleteOnExit();/*from   w w w  .  j a v  a  2 s. c o  m*/
        return file;
    }
}

Related

  1. forceDelete(File file)
  2. forceDelete(String file)
  3. forceDelete(final File file)
  4. recursiveDelete(File fileOrDir)
  5. recursiveDelete(File path)
  6. renameFile(String strSrc, String strDest, boolean deleteIfExist)
  7. safelyDeleteFile(File filePath)
  8. safelyDeleteFile(String filePath)
  9. deleteFolderFile(String filePath, boolean deleteThisPath)