Revert "fix: Create a subdirectory in the tmp directory"
This reverts commit 6540a6303f.
This commit is contained in:
parent
b5e94330e7
commit
161ae539d7
1 changed files with 1 additions and 6 deletions
|
|
@ -65,12 +65,7 @@ Future<MatrixSdkDatabase> _constructDatabase(String clientName) async {
|
||||||
|
|
||||||
Directory? fileStorageLocation;
|
Directory? fileStorageLocation;
|
||||||
try {
|
try {
|
||||||
final tmpDir = await getTemporaryDirectory();
|
fileStorageLocation = await getTemporaryDirectory();
|
||||||
final appTmpDir = Directory(join(tmpDir.path, clientName));
|
|
||||||
if (!await appTmpDir.exists()) {
|
|
||||||
await appTmpDir.create(recursive: true);
|
|
||||||
}
|
|
||||||
fileStorageLocation = appTmpDir;
|
|
||||||
} 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