Skip to content

fix(fs): pass require_literal_leading_dot when initializing runtime scope - #3701

Merged
lucasfernog merged 1 commit into
tauri-apps:v2from
kxrn-gupta:fix/fs-require-literal-leading-dot
Oct 12, 2026
Merged

lucasfernog merged 1 commit into
tauri-apps:v2from
kxrn-gupta:fix/fs-require-literal-leading-dot

Conversation

@kxrn-gupta

Copy link
Copy Markdown
Contributor

Description

Resolves #3699 where directories allowed dynamically at runtime via s_scope().allow_directory(path, true) failed to reach dotfiles/dot-directories when plugins.fs.requireLiteralLeadingDot: false was set in auri.conf.json.

Root Cause

In .setup(), the runtime scope was instantiated with &FsScope::default() which left
equire_literal_leading_dot: None (falling back to cfg!(unix) inside auri::fs::Scope).

Fix

Construct &FsScope::Scope passing
equire_literal_leading_dot resolved from the plugin config so the runtime scope honors the user's plugin configuration.

Closes #3699

…cope

When initializing the plugin's runtime scope in .setup, pass 
equire_literal_leading_dot from config to FsScope::Scope instead of using FsScope::default() so that paths allowed dynamically via s_scope().allow_directory() inherit the configured value.

Closes tauri-apps#3699
@github-actions

Copy link
Copy Markdown
Contributor

Package Changes Through 9539b9d

There are 9 changes which include biometric with minor, biometric-js with minor, deep-link with patch, deep-link-js with patch, fs with patch, fs-js with patch, single-instance with patch, updater with minor, updater-js with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.55 2.0.56
api-example-js 2.0.51 2.0.52
deep-link-example-js 2.2.16 2.2.17
biometric 2.4.2 2.5.0
biometric-js 2.4.2 2.5.0
deep-link 2.6.1 2.6.2
deep-link-js 2.6.1 2.6.2
fs 2.7.0 2.7.1
fs-js 2.7.0 2.7.1
dialog 2.8.2 2.8.3
dialog-js 2.8.2 2.8.3
http 2.8.2 2.8.3
http-js 2.8.2 2.8.3
persisted-scope 2.4.1 2.4.2
single-instance 2.5.3 2.5.4
updater 2.13.3 2.14.0
updater-js 2.13.3 2.14.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@lucasfernog
lucasfernog merged commit f8296d0 into tauri-apps:v2 Oct 12, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fs] plugins.fs.requireLiteralLeadingDot is ignored for paths allowed with fs_scope().allow_directory()

2 participants