Java File Path Delete deleteInPathTempFiles(String workingFolder)

Here you can find the source of deleteInPathTempFiles(String workingFolder)

Description

delete In Path Temp Files

License

Open Source License

Declaration

public static void deleteInPathTempFiles(String workingFolder) 

Method Source Code


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

import java.io.File;

public class Main {
    public static void deleteInPathTempFiles(String workingFolder) {
        String destFolder = workingFolder + "/OPS000";
        for (Object[] xmlGraph : getProviderGraphs()) {
            String resourceFile = xmlGraph[0].toString();
            new File(destFolder.concat(resourceFile)).delete();
        }//  ww w. ja  v  a  2  s.  com
        new File(destFolder.concat(destFolder)).delete();
    }

    public static Object[][] getProviderGraphs() {
        return new Object[][] { { "/999999236.ood" }, { "/999999263.ood" }, };
    }
}

Related

  1. deleteFolder(String sPath)
  2. deleteFolderAndContent(String folderPath)
  3. deleteFolderRec(File path, boolean alsoDeleteGivenFolder)
  4. deleteFolderRecursively(File path, boolean includeSelf)
  5. deleteIfExist(String filePath)
  6. deleteInRemote(String host, String path)
  7. deleteJaasFile(String jaasPath)
  8. deleteKey(String path, String key)
  9. deleteMultipleFiles(String filePath, int numberOfFiles)