mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
combine statements
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
d19b7742d6
commit
2ea4b352e3
1 changed files with 2 additions and 4 deletions
|
@ -727,10 +727,8 @@ public class FileDataStorageManager {
|
|||
if (localFile.exists()) {
|
||||
File targetFile = new File(targetLocalPath);
|
||||
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());
|
||||
}
|
||||
renamed = localFile.renameTo(targetFile);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue