Skip to content

Commit

Permalink
Changed OsFs to use absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
abates committed Jul 23, 2019
1 parent 60ddbee commit 957d9fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions os.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type osfs struct {
// system functions in the 'os' package. The osfs filesystem will be
// rooted in the given path
func NewOsFs(root string) FileSystem {
root, _ = filepath.Abs(root)
return &osfs{filepath.Clean(root)}
}

Expand Down

0 comments on commit 957d9fe

Please sign in to comment.