diff --git a/lib/data/file_manager.dart b/lib/data/file_manager.dart index d4ba4bfe2..c890bb8e5 100644 --- a/lib/data/file_manager.dart +++ b/lib/data/file_manager.dart @@ -127,7 +127,6 @@ abstract class FileManager { filePath = _sanitisePath(filePath); if (kIsWeb) { final prefs = await _prefs; - print("filePath: ${filePath + Editor.extension}"); return !prefs.containsKey(filePath + Editor.extension); } else { final Directory directory = Directory(await _documentsDirectory + filePath); diff --git a/lib/pages/home/browse.dart b/lib/pages/home/browse.dart index 5746cccd9..30ce52ad4 100644 --- a/lib/pages/home/browse.dart +++ b/lib/pages/home/browse.dart @@ -43,7 +43,7 @@ class _BrowsePageState extends State { } else { failed = children.isEmpty; for (String child in children) { - if (await FileManager.isDirectory("${path ?? '/'}/$child")) { + if (await FileManager.isDirectory("${path ?? ''}/$child")) { directoryPaths.add(child); } else { filePaths.add(child);