public class ManagedFilesHelper
extends java.lang.Object
Constructor and Description |
---|
ManagedFilesHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deleteFile(java.io.File fileOrDir)
Delete fileOrDir or directory (recursively)
|
static boolean |
deleteFiles(java.io.File[] files)
Delete fileOrDir or directory (recursively)
|
static java.io.File[] |
getFiles(Context ctx,
java.lang.String dirName,
java.lang.String suffix,
java.lang.String extension,
java.lang.String excludingSuffix)
Get files with the given suffix and extension that live under dirName
excluding the ones with excludingSuffix.
|
static java.util.List<java.lang.String> |
getPrefixList(Context ctx,
java.lang.String dirName,
java.lang.String suffix,
java.lang.String extension,
java.lang.String excludingSuffix)
Get "short name" (prefix) of managed files with the given suffix and extension that live
under dirName excluding the ones with excludingSuffix.
|
public static java.io.File[] getFiles(Context ctx, java.lang.String dirName, java.lang.String suffix, java.lang.String extension, java.lang.String excludingSuffix)
public static java.util.List<java.lang.String> getPrefixList(Context ctx, java.lang.String dirName, java.lang.String suffix, java.lang.String extension, java.lang.String excludingSuffix)
public static boolean deleteFile(java.io.File fileOrDir)
public static boolean deleteFiles(java.io.File[] files)