tauri_plugin_fs/config.rs
1// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
2// SPDX-License-Identifier: Apache-2.0
3// SPDX-License-Identifier: MIT
4
5use serde::Deserialize;
6
7#[derive(Deserialize)]
8#[serde(rename_all = "camelCase", deny_unknown_fields)]
9pub struct Config {
10 /// Whether or not paths that contain components that start with a `.`
11 /// will require that `.` appears literally in the pattern; `*`, `?`, `**`,
12 /// or `[...]` will not match. This is useful because such files are
13 /// conventionally considered hidden on Unix systems and it might be
14 /// desirable to skip them when listing files.
15 ///
16 /// Defaults to `true` on Unix systems and `false` on Windows
17 // dotfiles are not supposed to be exposed by default on unix
18 pub require_literal_leading_dot: Option<bool>,
19}