df
df copied to clipboard
FileNotFoundException on android
The following code doesn't work on android. While the system prints 'exists' which means I'm using the correct path, the df package throws [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Instance of 'FileNotFoundException'
The same code works on windows. Obviously has permission to read files as it prints 'exists' as well.
if (!File('downloaded/filters/merged/test.csv').existsSync()) {
print('exists');
}
final df = await DataFrame.fromCsv('downloaded/filters/merged/test.csv');