Skip to content

Commit

Permalink
fix(windows): use filepath instead of path (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanJain8 authored Jan 22, 2021
1 parent b1486d8 commit bb5d392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions z/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"io"
"os"
"path"
"path/filepath"

"github.com/pkg/errors"
)
Expand Down Expand Up @@ -60,7 +60,7 @@ func OpenMmapFileUsing(fd *os.File, sz int, writable bool) (*MmapFile, error) {
}

if fileSize == 0 {
dir, _ := path.Split(filename)
dir, _ := filepath.Split(filename)
go SyncDir(dir)
}
return &MmapFile{
Expand Down

0 comments on commit bb5d392

Please sign in to comment.