|
@@ -758,10 +758,8 @@ public class FileDataStorageManager {
|
|
if (localFile.exists()) {
|
|
if (localFile.exists()) {
|
|
File targetFile = new File(defaultSavePath + targetPath);
|
|
File targetFile = new File(defaultSavePath + targetPath);
|
|
File targetFolder = targetFile.getParentFile();
|
|
File targetFolder = targetFile.getParentFile();
|
|
- if (!targetFolder.exists()) {
|
|
|
|
- if (!targetFolder.mkdirs()) {
|
|
|
|
- Log_OC.e(TAG, "Unable to create parent folder " + targetFolder.getAbsolutePath());
|
|
|
|
- }
|
|
|
|
|
|
+ if (!targetFolder.exists() && !targetFolder.mkdirs()) {
|
|
|
|
+ Log_OC.e(TAG, "Unable to create parent folder " + targetFolder.getAbsolutePath());
|
|
}
|
|
}
|
|
copied = FileStorageUtils.copyFile(localFile, targetFile);
|
|
copied = FileStorageUtils.copyFile(localFile, targetFile);
|
|
}
|
|
}
|