jhillyerd / enmime

MIME mail encoding and decoding package for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmds should use filepath not path pkg

jhillyerd opened this issue · comments

path is for URLs, filepath is for OS file path manipulation

cmd/mime-dump/mime-dump.go:7:   "path"
cmd/mime-dump/mime-dump.go:26:  basename := path.Base(os.Args[1])
cmd/mime-extractor/mime-extractor.go:9: "path"
cmd/mime-extractor/mime-extractor.go:44:        basename := path.Base(*mimefile)
cmd/mime-extractor/mime-extractor.go:59:                newFileName := path.Join(*outdir, a.FileName)