#writeTextFile: filename starting with dot(.) like (.abc) giving error

10 messages · Page 1 of 1 (latest)

still heath
#

path not allowed on the configured scope: <pathname>/.gitignore

            `${exportPath}/${configFile.fileName}`,
            configFile.data,
            { dir: BaseDirectory.AppData }
          );```


   ` "@tauri-apps/api": "1.3.0"`
   ` "@tauri-apps/cli": "^1.2.3"`
amber valleyBOT
#

Thank you for your message!

                1. Search the #1047150269156294677 forum for existing posts
                2. Search Github issues to see if this is a known issue
                3. Send the output of `tauri info`
                4. Provide reproduction steps for your issue
                5. Be polite and remember to follow the [Tauri Code of Conduct](https://github.com/tauri-apps/governance-and-guidance/blob/main/CODE_OF_CONDUCT.md)

                Once you've read this and taken the appropriate steps, react to this message
hexed parcel
#

did you allowed it in allowlist?

still heath
#

{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "pnpm run build",
"beforeDevCommand": "pnpm run next-dev",
"devPath": "http://localhost:3000",
"distDir": "../dist",
"withGlobalTauri": true
},
"tauri": {
"allowlist": {
"path": {
"all": true
},
"shell": {
"open": true
},
"fs": {
"scope": [
"$APPDATA//*",
"$RESOURCE/resources/
/",
"$HOME/**/
"
],
"all": true
},
"http": {
"all": true,
"scope": [
]
},
"dialog": {
"all": true
},
"protocol": {
"all": false,
"asset": true,
"assetScope": ["**"]
},
"process": {
"all": false,
"exit": true,
"relaunch": false,
"relaunchDangerousAllowSymlinkMacos": false
}
},
"bundle": {
"active": true,
"category: "",
"copyright": "",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
],
"identifier": "",
"longDescription": "",
"macOS": {
},
"resources": ["resources/*"],
"shortDescription": "",
"targets": "all",
"windows": {
}
},
"security": {
"csp": "default-src 'self' https:; font-src 'self' https:; style-src 'self' 'unsafe-inline' https:; script-src 'self' 'unsafe-eval' 'unsafe-inline' https:; frame-src 'self' https:; img-src 'self' https: asset: https://asset.localhost"
},
"updater": {
"active": true,
"endpoints": [
""
],
"dialog": true,
"pubkey": ""
},
"windows": [
]
}
}

#

is ther anything i am missing @hexed parcel

hexed parcel
#

could you try $APPDATA/**/.*?

cedar jasper
still heath
#

ok I tried this
but on adding $APPDATA/**/.* it was not able to access data from app data directory.

then i tried writing file in document directory and writing file with . prefix works in document dir

          "$APPDATA/**/*",
          "$RESOURCE/resources/**/*",
          "$HOME/**/*",
          "$DOCUMENT/**/.*"
        ]```
#

@hexed parcel Please check this