Java File Path Delete deleteTempFile(String sourceFilePath)

Here you can find the source of deleteTempFile(String sourceFilePath)

Description

DeleteTempFile(String sourceFilePath) method is responsible delete content file

License

Open Source License

Parameter

Parameter Description

Return

[out] String

Declaration

static void deleteTempFile(String sourceFilePath) 

Method Source Code

//package com.java2s;
/**/* w  w  w .  ja v a  2  s  . c o  m*/
 *  @file   DexterUtilHelper.java
 *  @brief  DexterUtilHelper class source file
 *  @author adarsh.t
 *
* Copyright 2014 by Samsung Electronics, Inc.
* All rights reserved.
* 
* Project Description :
* This software is the confidential and proprietary information
* of Samsung Electronics, Inc. ("Confidential Information").  You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with Samsung Electronics.
*/

import java.io.File;

public class Main {
    /**
       * DeleteTempFile(String sourceFilePath) method is responsible
       * delete content file
       * 
       * @param        [in] String fileContents
       * @return      [out] String
       * @warning      [None]
       * @exception   IO exception
       */
    static void deleteTempFile(String sourceFilePath) {
        File tempfile = new File(sourceFilePath);
        if (tempfile.exists()) {
            tempfile.delete();
        }
    }
}

Related

  1. deleteRecursively(File path, File parentCanonical)
  2. deleteSelectedFilesFromDirectory(final String directoryPath, final List filesList)
  3. deleteSubfiles(String publishTemppath)
  4. deleteTemp(String tempPath)
  5. deleteTempDataFile(String dataFilePath)
  6. deleteTree(final File path)
  7. deleteWallpaper(String file_name, Map dimmensions, String basepath, List resolution_directories)
  8. delFile(String filePath)
  9. delFile(String filePath, String fileName)