parent
a91e35bb0b
commit
6f0ab83ffc
1 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,10 @@ Future<MatrixSdkDatabase> _constructDatabase(String clientName) async {
|
||||||
|
|
||||||
Directory? fileStorageLocation;
|
Directory? fileStorageLocation;
|
||||||
try {
|
try {
|
||||||
fileStorageLocation = await getTemporaryDirectory();
|
final temporaryDirectory = await getTemporaryDirectory();
|
||||||
|
fileStorageLocation = await Directory(
|
||||||
|
join(temporaryDirectory.path, 'fluffychat_download_cache'),
|
||||||
|
).create();
|
||||||
} on MissingPlatformDirectoryException catch (_) {
|
} on MissingPlatformDirectoryException catch (_) {
|
||||||
Logs().w(
|
Logs().w(
|
||||||
'No temporary directory for file cache available on this platform.',
|
'No temporary directory for file cache available on this platform.',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue