mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 22:55:46 +03:00
use MainApp.getStoragePath()
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
f90daae868
commit
a258734da9
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class InternalTwoWaySyncWork(
|
||||||
|
|
||||||
@Suppress("TooGenericExceptionCaught")
|
@Suppress("TooGenericExceptionCaught")
|
||||||
private fun checkFreeSpace(folder: OCFile): Result? {
|
private fun checkFreeSpace(folder: OCFile): Result? {
|
||||||
val storagePath = folder.storagePath ?: return null
|
val storagePath = folder.storagePath ?: MainApp.getStoragePath()
|
||||||
val file = File(storagePath)
|
val file = File(storagePath)
|
||||||
|
|
||||||
if (!file.exists()) return null
|
if (!file.exists()) return null
|
||||||
|
|
Loading…
Reference in a new issue