Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit 2f14276

Browse files
committed
Minor mkdirs
1 parent 81282fd commit 2f14276

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/src/main/java/org/freshrss/easyrss/data/DataUtils.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static void deleteFile(final File dir) {
9090

9191
public static String getAppFolderPath() {
9292
//return android.os.Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "EasyRSS"; //Not compatible with Android 6.0 Marshmallow
93-
return DataMgr.getInstance().getContext().getFilesDir() + File.separator + "EasyRSS";
93+
return DataMgr.getInstance().getContext().getFilesDir().getAbsolutePath() + File.separator + "EasyRSS";
9494
}
9595

9696
public static boolean isReadUid(final String uid) {
@@ -210,9 +210,7 @@ public static void streamTransfer(final InputStream in, final OutputStream out)
210210

211211
public static void writeItemToFile(final Item item) throws IOException {
212212
final File fdir = new File(item.getStoragePath());
213-
if (!fdir.mkdirs()) {
214-
Log.d("EasyRSS", "Cannot make dir: " + item.getStoragePath());
215-
}
213+
fdir.mkdirs();
216214
final String content = item.getContent();
217215
final HtmlCleaner cleaner = new HtmlCleaner();
218216
final TagNode node = cleaner.clean((content == null) ? "" : content);

0 commit comments

Comments
 (0)