дȫÏîĿÉó²éÎÊÌⲢ·¢²¼ v1.1.9
¸ÄÓñ¾»ú¶ÀÁ¢ CA£¬»ָ´ CLI TLS УÑ飬±£»¤ƾ¾ÝÓëÅäÖò¢·¢±£´档 д Cursor Êý¾ݡ¢»Ự·¾¶¡¢´úÀíÉúÃüÖÜÆڡ¢ģÐÍÇëÇóÓë Skills Îļþ²Ù×÷¡£ Ϊ¶ÀÁ¢ Tab ·þÎñÔö¼ӿͻ§¶˼øȨ£¬Éý¼¶ÒÀÀµÓ빤¾ßÁ´£¬ÍêÉƷ¢²¼ԪÐÅϢͬ²½¡£ Ñé֤£ºÁ½¸ö Go ģ¿éµIJâÊÔ/vet¡¢¹ؼüģ¿é race¡¢ǰ¶˲âÊÔ/Éú²ú¹¹½¨/Éó¼ơ¢ Go ¿ɴï©¶´ɨÃèÓë macOS/Linux ¿ÉÐÐģ¿齻²æ±àÒë¾ùͨ¹ý¡£ Windows ¸ôÀëÆô¶¯ͨ¹ý£»δÍê³ɵĵã»÷ðÑ̺ÍԭÉúƽ̨Ñé֤¼ûÉó²鱨¸档
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package appdata
|
||||
|
||||
import (
|
||||
"cursor/internal/securefile"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
@@ -9,19 +10,19 @@ import (
|
||||
|
||||
func ensureAssistantHome() error {
|
||||
migrateLegacyAssistantHome()
|
||||
if err := os.MkdirAll(RootDir(), 0o755); err != nil {
|
||||
if err := securefile.PrivateDir(RootDir()); err != nil {
|
||||
return fmt.Errorf("create assistant home: %w", err)
|
||||
}
|
||||
if err := os.MkdirAll(DataRootPath(), 0o755); err != nil {
|
||||
if err := securefile.PrivateDir(DataRootPath()); err != nil {
|
||||
return fmt.Errorf("create data root: %w", err)
|
||||
}
|
||||
if err := os.MkdirAll(HistoryRootPath(), 0o755); err != nil {
|
||||
if err := securefile.PrivateDir(HistoryRootPath()); err != nil {
|
||||
return fmt.Errorf("create history root: %w", err)
|
||||
}
|
||||
if err := os.MkdirAll(RulesRootPath(), 0o755); err != nil {
|
||||
if err := securefile.PrivateDir(RulesRootPath()); err != nil {
|
||||
return fmt.Errorf("create rules root: %w", err)
|
||||
}
|
||||
if err := os.MkdirAll(LogsRootPath(), 0o755); err != nil {
|
||||
if err := securefile.PrivateDir(LogsRootPath()); err != nil {
|
||||
return fmt.Errorf("create logs root: %w", err)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user