One less use of dart:io

dart:io cannot be used in the web
This commit is contained in:
Vishesh Handa
2021-07-30 11:03:36 +02:00
parent 3bc617ab97
commit 009ec48a8c

View File

@ -32,7 +32,7 @@ class NotesCache {
var fileList = await loadFromDisk();
Log.i("Notes Cache Loaded: ${fileList.length} items");
var sep = Platform.pathSeparator;
var sep = p.separator;
var notesBasePath = this.notesBasePath;
if (!notesBasePath.endsWith(sep)) {
notesBasePath += sep;