Compare commits

...

2 Commits

Author SHA1 Message Date
37c61695aa Update maintainer name 2024-09-23 13:46:15 +00:00
243826bd67 Fix crash in filesystem API (#69)
This help me fix #issues/64

Reviewed-on: Elara6331/itd#69
Reviewed-by: Elara <elara@elara.ws>

Fixes #64
Co-authored-by: Vyacheslav Chigrin <vyacheslav.chigrin@izba.dev>
Co-committed-by: Vyacheslav Chigrin <vyacheslav.chigrin@izba.dev>
2024-07-04 03:25:39 +00:00
2 changed files with 6 additions and 3 deletions

View File

@ -56,7 +56,7 @@ nfpms:
{{- end }}
description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch"
homepage: 'https://gitea.elara.ws/Elara6331/itd'
maintainer: 'Elara Musayelyan <elara@elara.ws>'
maintainer: 'Elara Ivy <elara@elara.ws>'
license: GPLv3
formats:
- apk
@ -79,7 +79,7 @@ aurs:
homepage: 'https://gitea.elara.ws/Elara6331/itd'
description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch"
maintainers:
- 'Elara Musayelyan <elara@elara.ws>'
- 'Elara Ivy <elara@elara.ws>'
license: GPLv3
private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://aur@aur.archlinux.org/itd-bin.git'

View File

@ -42,7 +42,10 @@ func (c *FSClient) Mkdir(ctx context.Context, paths ...string) error {
func (c *FSClient) ReadDir(ctx context.Context, dir string) ([]FileInfo, error) {
res, err := c.client.ReadDir(ctx, &rpc.PathRequest{Path: dir})
return convertEntries(res.Entries), err
if err != nil {
return nil, err
}
return convertEntries(res.Entries), nil
}
func convertEntries(e []*rpc.FileInfo) []FileInfo {