Skip to content

Commit

Permalink
bugfix for absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderr committed Aug 27, 2024
1 parent cec1270 commit 867a183
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ func New(folder string) (*Client, error) {
if strings.HasPrefix(folder, "~/") {
dirname, _ := os.UserHomeDir()
expandedFolder = filepath.Join(dirname, folder[2:])
} else {
expandedFolder = folder
}

index, err := createIndex(expandedFolder)
Expand Down

0 comments on commit 867a183

Please sign in to comment.