Skip to content

Commit

Permalink
use MainApp.getStoragePath()
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Oct 2, 2024
1 parent f90daae commit a258734
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class InternalTwoWaySyncWork(

@Suppress("TooGenericExceptionCaught")
private fun checkFreeSpace(folder: OCFile): Result? {
val storagePath = folder.storagePath ?: return null
val storagePath = folder.storagePath ?: MainApp.getStoragePath()
val file = File(storagePath)

if (!file.exists()) return null
Expand Down

0 comments on commit a258734

Please sign in to comment.