Skip to content

Commit

Permalink
feat(segment): change to env.LsDir
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenbuckley committed Oct 23, 2023
1 parent 042d104 commit 3e184ac
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/segments/umbraco.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package segments

import (
"encoding/xml"
"os"
"path/filepath"
"strings"
"time"
Expand Down Expand Up @@ -103,10 +102,7 @@ func (u *Umbraco) TryFindUmbracoInParentDirsOrSelf() (*FindUmbracoResult, error)

for {
// Check if a directory named "Umbraco" exists in the current directory
files, err := os.ReadDir(currentFolder)
if err != nil {
return nil, err
}
files := u.env.LsDir(currentFolder)

// Have to loop over each item found in the current folder
for _, file := range files {
Expand Down

0 comments on commit 3e184ac

Please sign in to comment.