TF-1809: Handle sync data from cache and network when get email contents
(cherry picked from commit 896059cd5b29c62c2cf34621fe35d7b23a54acf4)
This commit is contained in:
@@ -55,6 +55,16 @@ class FileUtils {
|
||||
return await file.writeAsString(content, mode: FileMode.append);
|
||||
}
|
||||
|
||||
Future<void> deleteFile(String filePath) async {
|
||||
final file = File(filePath);
|
||||
if (await file.exists()) {
|
||||
await file.delete();
|
||||
log("FileUtils()::deleteFile: $file");
|
||||
} else {
|
||||
log("FileUtils()::deleteFile: File does not exist");
|
||||
}
|
||||
}
|
||||
|
||||
Future<String> getContentFromFile({
|
||||
required String nameFile,
|
||||
String? folderPath,
|
||||
|
||||
Reference in New Issue
Block a user