mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 04:20:00 +03:00
Adds mkdirs to TemporaryFileCreator
This commit is contained in:
parent
0bf84341af
commit
eb3f704745
1 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,10 @@ internal class TemporaryFileCreator @Inject constructor(
|
|||
) {
|
||||
suspend fun create(): File {
|
||||
return withContext(Dispatchers.IO) {
|
||||
File.createTempFile(UUID.randomUUID().toString(), null, context.cacheDir)
|
||||
runCatching {
|
||||
File.createTempFile(UUID.randomUUID().toString(), null, context.cacheDir)
|
||||
.apply { mkdirs() }
|
||||
}.getOrThrow()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue