Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/FileUtils.java
/**
	 * Deletes the given file from the given storage location. If the file 
	 * doesn't exist this will still return success. it will only return 
	 * an error if the file still exists after this has been called.
	 * 
	 * @author Ian Copland
	 * 
	 * @param The storage location.
	 * @param The filename.
	 * 
	 * @return Whether or not the file removal was successful.
	 */
Deletes the given file from the given storage location. If the file
doesn't exist this will still return success. it will only return
an error if the file still exists after this has been called.

@author Ian Copland

@param The storage location.
@param The filename.

@return Whether or not the file removal was successful.
Deletes the given file from the given storage location . If the file doesn ' t exist this will still return success . it will only return an error if the file still exists after this has been called . @author Ian Copland @param The storage location . @param The filename . @return Whether or not the file removal was successful .
public static boolean removeFile(StorageLocation in_storageLocation, String in_filePath)
	{
		switch (in_storageLocation)
		{
			case k_root:
				return removeFile(in_filePath);
			case k_externalStorage:
				return removeFile(StringUtils.StandardisePath(getExternalStorageDirectory()) + in_filePath);
			case k_internalStorage:
				return removeFileInternal(in_filePath);
			case k_apk:
				Logging.logFatal("FileUtils: Cannot remove file from APK.");
				return false;
			default:
				Logging.logFatal("FileUtils: Invalid storage location.");
				return false;
		}
	}
public static boolean removeFile ( StorageLocation in_storageLocation , String in_filePath ) { switch ( in_storageLocation ) { case k_root : return removeFile ( in_filePath ) ; case k_externalStorage : return removeFile ( StringUtils . StandardisePath ( getExternalStorageDirectory ( ) ) + in_filePath ) ; case k_internalStorage : return removeFileInternal ( in_filePath ) ; case k_apk : Logging . logFatal ( "FileUtils: Cannot remove file from APK." ) ; return false ; default : Logging . logFatal ( "FileUtils: Invalid storage location." ) ; return false ; } }
Deletes the given file from the given storage location.
Deletes the given file from the given storage location .