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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user