@@ -54,34 +54,35 @@ nb localstore
5454
5555参考路径如下:
5656
57- ### ` LOCALSTORE_USE_CWD ` 为 true 时:
58- - cache path: ` <CurrentWorkspaceDir>/cache/ `
59- - data path: ` <CurrentWorkspaceDir>/data/ `
60- - config path: ` <CurrentWorkspaceDir>/config/ `
57+ 当 ` LOCALSTORE_USE_CWD ` 为 true 时:
6158
62- (` CurrentWorkspaceDir ` 一般为 nonebot 实例的运行目录)
59+ - cache path: ` <current_working_dir>/cache/ `
60+ - data path: ` <current_working_dir>/data/ `
61+ - config path: ` <current_working_dir>/config/ `
6362
64- ### ` LOCALSTORE_USE_CWD ` 为 false / 未配置时:
63+ ( ` current_working_dir ` 一般为 nonebot 实例的运行目录)
6564
66- #### cache path
65+ 当 ` LOCALSTORE_USE_CWD ` 为 false / 未配置时:
6766
68- - macOS: ` ~/Library/Caches/<AppName> `
69- - Unix: ` ~/.cache/<AppName> ` (XDG default)
70- - Windows: ` C:\Users\<username>\AppData\Local\<AppName>\Cache `
67+ ### cache path
7168
72- #### data path
69+ - macOS: ` ~/Library/Caches/nonebot2 `
70+ - Unix: ` ~/.cache/nonebot2 ` (XDG default)
71+ - Windows: ` C:\Users\<username>\AppData\Local\nonebot2\Cache `
7372
74- - macOS: ` ~/Library/Application Support/<AppName> `
75- - Unix: ` ~/.local/share/<AppName> ` or in $XDG_DATA_HOME, if defined
76- - Win XP (not roaming): ` C:\Documents and Settings\<username>\Application Data\<AppName> `
77- - Win 7 (not roaming): ` C:\Users\<username>\AppData\Local\<AppName> `
73+ ### data path
7874
79- #### config path
75+ - macOS: ` ~/Library/Application Support/nonebot2 `
76+ - Unix: ` ~/.local/share/nonebot2 ` or in $XDG_DATA_HOME, if defined
77+ - Win XP (not roaming): ` C:\Documents and Settings\<username>\Application Data\nonebot2 `
78+ - Win 7 (not roaming): ` C:\Users\<username>\AppData\Local\nonebot2 `
79+
80+ ### config path
8081
8182- macOS: same as user_data_dir
82- - Unix: ` ~/.config/<AppName> `
83- - Win XP (roaming): ` C:\Documents and Settings\<username>\Local Settings\Application Data\<AppName> `
84- - Win 7 (roaming): ` C:\Users\<username>\AppData\Roaming\<AppName> `
83+ - Unix: ` ~/.config/nonebot2 `
84+ - Win XP (roaming): ` C:\Documents and Settings\<username>\Local Settings\Application Data\nonebot2 `
85+ - Win 7 (roaming): ` C:\Users\<username>\AppData\Roaming\nonebot2 `
8586
8687## 配置项
8788
0 commit comments