Skip to content

Commit bc98150

Browse files
authored
📝 Update README.md
1 parent 26c7f4e commit bc98150

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,29 @@ nb localstore
5454

5555
参考路径如下:
5656

57-
### cache path
57+
### `LOCALSTORE_USE_CWD` 为 true 时:
58+
- cache path: `<CurrentWorkspaceDir>/cache/`
59+
- data path: `<CurrentWorkspaceDir>/data/`
60+
- config path: `<CurrentWorkspaceDir>/config/`
61+
62+
(`CurrentWorkspaceDir` 一般为 nonebot 实例的运行目录)
63+
64+
### `LOCALSTORE_USE_CWD` 为 false / 未配置时:
65+
66+
#### cache path
5867

5968
- macOS: `~/Library/Caches/<AppName>`
6069
- Unix: `~/.cache/<AppName>` (XDG default)
6170
- Windows: `C:\Users\<username>\AppData\Local\<AppName>\Cache`
6271

63-
### data path
72+
#### data path
6473

6574
- macOS: `~/Library/Application Support/<AppName>`
6675
- Unix: `~/.local/share/<AppName>` or in $XDG_DATA_HOME, if defined
6776
- Win XP (not roaming): `C:\Documents and Settings\<username>\Application Data\<AppName>`
6877
- Win 7 (not roaming): `C:\Users\<username>\AppData\Local\<AppName>`
6978

70-
### config path
79+
#### config path
7180

7281
- macOS: same as user_data_dir
7382
- Unix: `~/.config/<AppName>`

0 commit comments

Comments
 (0)