mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Another workaround for another crash on Android launcher
This commit is contained in:
@ -81,7 +81,7 @@ public class FileUtil
|
||||
{
|
||||
if (file == null)
|
||||
{
|
||||
Log.e("Broken path given to fileutil");
|
||||
Log.e("Broken path given to fileutil::ensureWriteable");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -99,6 +99,12 @@ public class FileUtil
|
||||
|
||||
public static boolean clearDirectory(final File dir)
|
||||
{
|
||||
if (dir == null)
|
||||
{
|
||||
Log.e("Broken path given to fileutil::clearDirectory");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (final File f : dir.listFiles())
|
||||
{
|
||||
if (f.isDirectory() && !clearDirectory(f))
|
||||
|
Reference in New Issue
Block a user