Improve GallerySpider
This commit is contained in:
1 parent
ec7e3948d9
commit
702376979a
32 files changed
+2181
-528
No files matched your search
@@ -25,6 +25,9 @@ import com.hippo.ehviewer.BuildConfig;
|
||||
import com.hippo.ehviewer.client.EhConfig;
|
||||
import com.hippo.ehviewer.client.EhUrl;
|
||||
import com.hippo.unifile.UniFile;
|
||||
import com.hippo.yorozuya.FileUtils;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public final class Settings {
|
||||
|
||||
@@ -192,7 +195,9 @@ public final class Settings {
|
||||
|
||||
|
||||
public static UniFile getDownloadPath() {
|
||||
return UniFile.fromFile(AppConfig.getDownloadDir());
|
||||
File file = AppConfig.getDownloadDir();
|
||||
FileUtils.ensureDirectory(file);
|
||||
return UniFile.fromFile(file);
|
||||
}
|
||||
|
||||
/****** Advance ******/
|
||||
|
||||
Reference in new issue
Block a user