Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix(Files): Opening files inside folders not working
Browse files Browse the repository at this point in the history
  • Loading branch information
iakdis committed May 4, 2023
1 parent b03d09f commit bba1b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/logic/files.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ Future<List<File>> getAllFiles({BuildContext? context}) async {

final contentFolder = SSG.getSSGContentFolder(
ssg: SSG.getSSGType(Preferences.getSSG()), pathSeparator: false);
Directory fileDirectory = Directory(Preferences.getCurrentPath().substring(
0, Preferences.getCurrentPath().length - contentFolder.length));
Directory fileDirectory = Directory(
'${Preferences.getSitePath()}${Platform.pathSeparator}$contentFolder');

if (!fileDirectory.existsSync()) return [];

Expand Down

0 comments on commit bba1b49

Please sign in to comment.