Skip to content

Commit

Permalink
Remove leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Aug 15, 2024
1 parent f6f47c6 commit 202a545
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lw_file_system/lib/src/api/file_system_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ abstract class GeneralFileSystem {

FutureOr<String> getAbsolutePath(String relativePath) async {
relativePath = normalizePath(relativePath);
if (relativePath.startsWith('/')) relativePath = relativePath.substring(1);
final root = await getDirectory();
return p.Context(style: p.Style.posix, current: root)
.absolute(relativePath);
Expand Down

0 comments on commit 202a545

Please sign in to comment.