Skip to content

Commit

Permalink
memfs: Replace filepath.Separator with separator
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <[email protected]>
  • Loading branch information
pjbgf committed Apr 26, 2024
1 parent 65c61a1 commit 9a50ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memfs/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (fs *Memory) resolveLink(fullpath string, f *file) (target string, isLink b
// unit (eg.: `C:\`) to assert that is absolute, but in this mem implementation
// any path starting by `separator` is also considered absolute.
func isAbs(path string) bool {
return filepath.IsAbs(path) || strings.HasPrefix(path, string(filepath.Separator))
return filepath.IsAbs(path) || strings.HasPrefix(path, string(separator))
}

func (fs *Memory) Stat(filename string) (os.FileInfo, error) {
Expand Down

0 comments on commit 9a50ca8

Please sign in to comment.