#failed to get path from `path`

6 messages · Page 1 of 1 (latest)

stone mantle
#

How I solve the failed to get path from problem?
I has this in my JS

const file = await open({
        multiple: false,
        directory: false,
        filters: [{ name: "CSV", extensions: ["csv"] }],
      });
      if (!file) return;
      
      console.log(typeof file);
  
      const dataFile = await readTextFile(file);

In my capabilites/default.json I has this permissions

"permissions": [
    "core:default",
    "shell:allow-open",
    "dialog:allow-ask",
    "dialog:allow-confirm",
    "dialog:allow-message",
    "dialog:allow-open",
    "dialog:allow-save",
    "fs:default",
    "fs:read-all",
    "fs:write-all",
    {
      "identifier": "fs:scope",
      "allow": [
        {
          "path": "**",
          "requireLiteralLeadingDot": false
        }
      ]
    }
exotic hull
#

Not sure but I don't know any permissions named fs:scope where did you find this?

#

Nevermind didn't read the list until the end

#

Seems like a bug in the FS plugin

#

You can either target the latest git repo V2 branch or wait until there is a new version released (I would guess in the next few days, maybe today)