BTGO游戏盒 v3.4.80版本的 MD5 值为:000032bab1addaabfdc671ee6a7087ab
以下内容为反编译后的 t.java 源代码,内容仅作参考
package k0;
import java.io.File;
public class t extends m0.e {
public static String f23055a = "http://logback.qos.ch/codes.html#renamingError";
public Boolean F(File file, File file2) throws j0.e {
if (!p0.k.c()) {
return Boolean.FALSE;
}
File parentFile = file2.getAbsoluteFile().getParentFile();
if (parentFile == null) {
addWarn("Parent of target file [" + file2 + "] is null");
return null;
}
if (parentFile.exists()) {
try {
return Boolean.valueOf(!l.a(file, parentFile));
} catch (j0.e e10) {
addWarn("Error while checking file store equality", e10);
return null;
}
}
addWarn("Parent of target file [" + file2 + "] does not exist");
return null;
}
public void G(String str, String str2) throws j0.e {
if (str.equals(str2)) {
addWarn("Source and target files are the same [" + str + "]. Skipping.");
return;
}
File file = new File(str);
if (!file.exists()) {
throw new j0.e("File [" + str + "] does not exist.");
}
File file2 = new File(str2);
createMissingTargetDirsIfNecessary(file2);
addInfo("Renaming file [" + file + "] to [" + file2 + "]");
if (file.renameTo(file2)) {
return;
}
addWarn("Failed to rename file [" + file + "] as [" + file2 + "].");
if (Boolean.TRUE.equals(F(file, file2))) {
addWarn("Detected different file systems for source [" + str + "] and target [" + str2 + "]. Attempting rename by copying.");
H(str, str2);
return;
}
addWarn("Please consider leaving the [file] option of " + j0.b.class.getSimpleName() + " empty.");
StringBuilder sb = new StringBuilder();
sb.append("See also ");
sb.append(f23055a);
addWarn(sb.toString());
}
public void H(String str, String str2) throws j0.e {
new p0.n(getContext()).F(str, str2);
if (new File(str).delete()) {
return;
}
addWarn("Could not delete " + str);
}
public void createMissingTargetDirsIfNecessary(File file) throws j0.e {
if (p0.n.G(file)) {
return;
}
throw new j0.e("Failed to create parent directories for [" + file.getAbsolutePath() + "]");
}
public String toString() {
return "c.q.l.co.rolling.helper.RenameUtil";
}
}