full-stack-skills/tauri-skills / skills/tauri-app-file-system
tauri-app-file-system
VerifiedGuidance for Tauri v2 file-system plugin with scoped access and safe file operations.
| File | Kind | Size |
|---|---|---|
| LICENSE.txt | markdown | 11.1 KB |
| SKILL.md | skill md | 2.1 KB |
| agents/openai.yaml | config | 301 B |
| examples/usage.md | markdown | 1.1 KB |
| templates/basic.md | markdown | 149 B |
| templates/capabilities.json | config | 720 B |
examples/usage.md
View on GitHub# Usage: tauri-app-file-system
This document provides at least 5 usage examples for the **tauri-app-file-system** skill.
## Example 1: Read Text File
```typescript
import { readTextFile, BaseDirectory } from '@tauri-apps/plugin-fs';
const content = await readTextFile('config.json', { baseDir: BaseDirectory.AppLocalData });
```
## Example 2: Write Text File
```typescript
import { writeTextFile, BaseDirectory } from '@tauri-apps/plugin-fs';
await writeTextFile('config.json', '{ "theme": "dark" }', { baseDir: BaseDirectory.AppLocalData });
```
## Example 3: Check File Existence
```typescript
import { exists, BaseDirectory } from '@tauri-apps/plugin-fs';
const hasConfig = await exists('config.json', { baseDir: BaseDirectory.AppLocalData });
```
## Example 4: Create Directory
```typescript
import { mkdir, BaseDirectory } from '@tauri-apps/plugin-fs';
await mkdir('logs', { baseDir: BaseDirectory.AppLocalData, recursive: true });
```
## Example 5: Read Directory
```typescript
import { readDir, BaseDirectory } from '@tauri-apps/plugin-fs';
const entries = await readDir('plugins', { baseDir: BaseDirectory.Resource });
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |