Fix the issue where cache files are not deleted.

This commit is contained in:
2025-02-09 11:38:19 +08:00
parent 614c01872b
commit 8ab4f7a34b

View File

@@ -118,6 +118,7 @@ class DataSync with ChangeNotifier {
await client.remove(files.first.name!); await client.remove(files.first.name!);
} }
await client.write(filename, await data.readAsBytes()); await client.write(filename, await data.readAsBytes());
data.deleteIgnoreError();
Log.info("Upload Data", "Data uploaded successfully"); Log.info("Upload Data", "Data uploaded successfully");
return const Res(true); return const Res(true);
} catch (e, s) { } catch (e, s) {