1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-28 23:20:10 +02:00

сделал StringFromMassInt64()

This commit is contained in:
Nikitin Aleksandr
2024-09-18 14:45:28 +03:00
parent 7d44dfd05b
commit c455e96e49

View File

@@ -420,15 +420,20 @@ func CreateTelegramClient_err(func_OnNewMessage func(ctx context.Context, entiti
LogDir := filepath.Join(sessionDir, "log") LogDir := filepath.Join(sessionDir, "log")
logFilePath := filepath.Join(LogDir, "log.jsonl") logFilePath := filepath.Join(LogDir, "log.jsonl")
ok, err := micro.FileExists(LogDir) ok, err := micro.FileExists(LogDir)
if err != nil {
err = fmt.Errorf("FileExists() error: %w", err)
log.Error(err)
return err
}
if ok == false { if ok == false {
err = fmt.Errorf("FileExists() error: need create folder: %v", LogDir) err = fmt.Errorf("FileExists() error: need create folder: %v", LogDir)
log.Error(err) log.Error(err)
//micro.CreateFolder(LogDir, 0666) err := micro.CreateFolder(LogDir, 0600) //rw------- т.к. файл секретный
if err != nil {
log.Error("CreateFolder() error: ", err)
return err
}
//return err
}
if err != nil {
err = fmt.Errorf("FileExists() error: %w", err)
log.Debug(err)
return err return err
} }