|
@@ -1757,6 +1757,11 @@ public final class FileUtils {
|
|
|
Log.i("FileUtils", "targetType is null");
|
|
|
return true;
|
|
|
}
|
|
|
+ if (TextUtils.equals(targetType,"video") || TextUtils.equals(targetType,"img")) {
|
|
|
+ //忽略video或者img格式
|
|
|
+ Log.i("FileUtils", "video or img type is ignore");
|
|
|
+ return true;
|
|
|
+ }
|
|
|
File file = new File(filePath);
|
|
|
if (!file.exists()) {
|
|
|
Log.i("FileUtils", "file is not exist");
|