Skip to content

Commit

Permalink
[fs] Add Tip for LitlerLeadingDot (#3145)
Browse files Browse the repository at this point in the history
Co-authored-by: FabianLars <[email protected]>
  • Loading branch information
tweidinger and FabianLars authored Jan 30, 2025
1 parent a09c7f0 commit c4397bd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/content/docs/plugin/file-system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,24 @@ use the the object form of permissions `{ "identifier": string, "allow"?: [], "d
In the above example you can use the [`exists`](#exists) API using any `$APPDATA` sub path (does not include sub-directories)
and the [`rename`](#rename)

:::tip
If you are trying to access dotfiles (e.g. `.gitignore`) or dotfolders (e.g. `.ssh`) on Unix based systems,
then you need to specify either the full path `/home/user/.ssh/example` or the glob after the dotfolder path
component `/home/user/.ssh/*`.

If that does not work in your use case then you can configure the plugin to treat any component
as a valid path literal.

```json title="src-tauri/tauri.conf.json
"plugins": {
"fs": {
"requireLiteralLeadingDot": false
}
}
```

:::

[NSPrivacyAccessedAPICategoryFileTimestamp]: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278393
[C617.1]: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278393
[base directory]: /reference/javascript/api/namespacepath/#basedirectory
Expand Down

0 comments on commit c4397bd

Please sign in to comment.