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

This commit is contained in:
laoyuyu committed 2020-08-28 09:16:31 +08:00
1 parent 7be93b38c2
commit 8785bb2875
6 files changed
+39 -20

No files matched your search

@@ -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;