Skip to content

Commit

Permalink
[Infrastructure] Use the same paths to store the temp and main assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Nov 5, 2022
1 parent 48da0e3 commit 0a08f5c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/infrastructure/resources_service.dart
Expand Up @@ -38,11 +38,10 @@ class ResourceServiceImpl implements ResourceService {
});

Future<void> 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);
}

Expand Down

0 comments on commit 0a08f5c

Please sign in to comment.