Handle case of migration of empty src directory

This commit is contained in:
Bartosz Przybylski 2015-12-30 14:11:50 +01:00 committed by AndyScherzinger
parent 4265c60b92
commit a9f55d5d96
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -293,6 +293,9 @@ public class StorageMigration {
deleteRecursive(dstFile);
dstFile.delete();
File srcFile = new File(mStorageSource + File.separator + MainApp.getDataFolder());
srcFile.mkdirs();
publishProgress(R.string.file_migration_checking_destination);
checkDestinationAvailability();