df icon indicating copy to clipboard operation
df copied to clipboard

FileNotFoundException on android

Open BananaMasterz opened this issue 3 years ago • 0 comments

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');

BananaMasterz avatar Oct 06 '21 16:10 BananaMasterz