Build directory URI using Uri.file instead of Uri.parse

`Uri.parse` will not work with Windows paths as it will consider `C:\path`
to indicate a file scheme (the "C:" part) and will complain about it.

With `Uri.file` we can build the URI without hitting this complication.
This commit is contained in:
Elena Tanasoiu
2023-02-14 18:01:05 +00:00
parent a59a008d8e
commit f1227dd2eb

View File

@@ -35,7 +35,7 @@ export class QlPackGenerator {
this.header = "# This is an automatically generated file.\n\n";
this.qlpackFileName = "qlpack.yml";
this.folderUri = Uri.parse(join(this.storagePath, this.folderName));
this.folderUri = Uri.file(join(this.storagePath, this.folderName));
}
public async generate() {