mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-24 11:46:24 +01:00
Action row 1A, due mode, catering auto-log rows with undo, relay interface, photo input. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWZHWP4KZ6x5TcXDBFC
12 lines
316 B
Dart
12 lines
316 B
Dart
import 'dart:io';
|
|
|
|
/// Deletes the picked file at [path]; a failure is not worth a crash.
|
|
Future<void> discardPickedFile(String path) async {
|
|
try {
|
|
await File(path).delete();
|
|
} on FileSystemException {
|
|
// Already gone, or not ours to delete: the bytes were read, which is all
|
|
// that mattered.
|
|
}
|
|
}
|