#Migrating from Tauri v1 : FS plugin not allowed

2 messages · Page 1 of 1 (latest)

vale crescent
#

Hello!
I'm trying to migrate my Tauri v1 project to v2 . Despite following the migration guide, I got this error when I'm trying to use the mkdir function.

I've tried to use the key "all" with the value : true but it doesn't do anything.

I'm using Vite + Sveltekit.

    "plugins": {
        "fs": {
            "mkdir": true,
            "scope": ["$DOCUMENT/**"]
        }
    }
vale crescent
#

Fixed it by adding :

{
  "identifier": "fs:allow-mkdir",
  "allow": [{ "path": "$DOCUMENT/*" }]
}

In the capabilities.json in the permissions key