增加路径不可以写的判断,下载时,如果路径不可写,将执行失败回调 https://github.com/AriaLyy/Aria/issues/750

This commit is contained in:
laoyuyu
2020-08-27 20:43:29 +08:00
parent 7be93b38c2
commit 8785bb2875
6 changed files with 39 additions and 20 deletions

View File

@@ -691,7 +691,7 @@ public class FileUtil {
return list;
}
private static boolean canWrite(String dirPath) {
public static boolean canWrite(String dirPath) {
File dir = new File(dirPath);
if (dir.canWrite()) {
return true;