-
-
Notifications
You must be signed in to change notification settings - Fork 382
Open
Labels
Description
Hi!
This is a follow-up of the discussion in #6722.
@monsieurtanuki To be understand, please remind me what was the issue with the getFile
method initially:
static Future<File> getFile(String path) async {
if (Platform.isIOS) {
final int lastSeparator = path.lastIndexOf('/');
final String filename = lastSeparator == -1
? path
: path.substring(lastSeparator + 1);
final Directory directory = await getDirectory();
path = '${directory.path}/$filename';
}
return File(path);
}
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
💬 To discuss and validate