use MainApp.getStoragePath()

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-10-02 12:13:23 +02:00
parent f90daae868
commit a258734da9
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -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