mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-23 05:57:11 +02:00
filepath clean.
This commit is contained in:
parent
76b44b949c
commit
cdb9b185f2
4 changed files with 40 additions and 26 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
"m1k1o/neko/internal/types"
|
||||
)
|
||||
|
||||
func ListFiles(path string) (*[]types.FileListItem, error) {
|
||||
func ListFiles(path string) ([]types.FileListItem, error) {
|
||||
items, err := os.ReadDir(path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -32,5 +32,5 @@ func ListFiles(path string) (*[]types.FileListItem, error) {
|
|||
}
|
||||
}
|
||||
|
||||
return &out, nil
|
||||
return out, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue