mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +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…
Reference in a new issue