SDL: re-create download outdir if SD card is replaced

This commit is contained in:
Sergii Pylypenko
2017-02-24 17:01:23 +02:00
parent 2d9acc5aee
commit 5edfb74432

View File

@@ -287,7 +287,7 @@ class DataDownloader extends Thread
Log.i("SDL", "Downloading data to: '" + outFilesDir + "'");
try {
File outDir = new File( outFilesDir );
if( !(outDir.exists() && outDir.isDirectory()) )
if( !outDir.exists() )
outDir.mkdirs();
OutputStream out = new FileOutputStream( getOutFilePath(".nomedia") );
out.flush();