File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package filepicker
22
33import (
44 "fmt"
5+ "io/fs"
56 "os"
67 "path/filepath"
78 "sort"
@@ -17,9 +18,8 @@ import (
1718)
1819
1920var (
20- lastID int
21- idMtx sync.Mutex
22-
21+ lastID int
22+ idMtx sync.Mutex
2323 listWidth , listHeight , _ = term .GetSize (0 )
2424)
2525
@@ -253,7 +253,7 @@ func (m Model) readDir(path string, showHidden bool) tea.Cmd {
253253 }
254254}
255255
256- func getCleanDirEntries (dirEntries []os .DirEntry , showHidden bool ) []os.DirEntry {
256+ func getCleanDirEntries (dirEntries []fs .DirEntry , showHidden bool ) []os.DirEntry {
257257 sort .Slice (dirEntries , func (i , j int ) bool {
258258 if dirEntries [i ].IsDir () == dirEntries [j ].IsDir () {
259259 return dirEntries [i ].Name () < dirEntries [j ].Name ()
You can’t perform that action at this time.
0 commit comments