SDL: re-create download outdir if SD card is replaced
This commit is contained in:
@@ -287,7 +287,7 @@ class DataDownloader extends Thread
|
|||||||
Log.i("SDL", "Downloading data to: '" + outFilesDir + "'");
|
Log.i("SDL", "Downloading data to: '" + outFilesDir + "'");
|
||||||
try {
|
try {
|
||||||
File outDir = new File( outFilesDir );
|
File outDir = new File( outFilesDir );
|
||||||
if( !(outDir.exists() && outDir.isDirectory()) )
|
if( !outDir.exists() )
|
||||||
outDir.mkdirs();
|
outDir.mkdirs();
|
||||||
OutputStream out = new FileOutputStream( getOutFilePath(".nomedia") );
|
OutputStream out = new FileOutputStream( getOutFilePath(".nomedia") );
|
||||||
out.flush();
|
out.flush();
|
||||||
|
|||||||
Reference in New Issue
Block a user