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
2
2
3
3
import (
4
4
"fmt"
5
+ "io/fs"
5
6
"os"
6
7
"path/filepath"
7
8
"sort"
@@ -17,9 +18,8 @@ import (
17
18
)
18
19
19
20
var (
20
- lastID int
21
- idMtx sync.Mutex
22
-
21
+ lastID int
22
+ idMtx sync.Mutex
23
23
listWidth , listHeight , _ = term .GetSize (0 )
24
24
)
25
25
@@ -253,7 +253,7 @@ func (m Model) readDir(path string, showHidden bool) tea.Cmd {
253
253
}
254
254
}
255
255
256
- func getCleanDirEntries (dirEntries []os .DirEntry , showHidden bool ) []os.DirEntry {
256
+ func getCleanDirEntries (dirEntries []fs .DirEntry , showHidden bool ) []os.DirEntry {
257
257
sort .Slice (dirEntries , func (i , j int ) bool {
258
258
if dirEntries [i ].IsDir () == dirEntries [j ].IsDir () {
259
259
return dirEntries [i ].Name () < dirEntries [j ].Name ()
You can’t perform that action at this time.
0 commit comments