From 0a08f5c2abc887296dc8a4ca8a566d6ab81b3d10 Mon Sep 17 00:00:00 2001 From: Efrain Bastidas Date: Sat, 5 Nov 2022 16:37:29 -0500 Subject: [PATCH] [Infrastructure] Use the same paths to store the temp and main assets --- lib/infrastructure/resources_service.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/infrastructure/resources_service.dart b/lib/infrastructure/resources_service.dart index 4dd8e4bd3..1d24a5dd2 100644 --- a/lib/infrastructure/resources_service.dart +++ b/lib/infrastructure/resources_service.dart @@ -38,11 +38,10 @@ class ResourceServiceImpl implements ResourceService { }); Future init() async { - final temp = await getTemporaryDirectory(); - final support = await getApplicationSupportDirectory(); + final dir = await getApplicationSupportDirectory(); - _tempPath = join(temp.path, _tempDirName); - _assetsPath = join(support.path, _tempAssetsDirName); + _tempPath = join(dir.path, _tempDirName); + _assetsPath = join(dir.path, _tempAssetsDirName); await _deleteDirectoryIfExists(_tempPath); }