feat(opener): Add requireLiteralLeadingDot config (#2762)

This commit is contained in:
Fabian-Lars
2025-06-12 13:39:36 +02:00
committed by GitHub
parent 106e46ed51
commit ce9888a2d4
4 changed files with 42 additions and 8 deletions
+4 -1
View File
@@ -129,7 +129,10 @@ impl<'a, R: Runtime, M: Manager<R>> Scope<'a, R, M> {
&tauri::utils::config::FsScope::Scope {
allow: self.allowed.iter().filter_map(|e| e.path()).collect(),
deny: self.denied.iter().filter_map(|e| e.path()).collect(),
require_literal_leading_dot: None,
require_literal_leading_dot: self
.manager
.state::<crate::Opener<R>>()
.require_literal_leading_dot,
},
)?;