Closed
Description
As of Go 1.11.4, the documentation of path.Join
says:
Join joins any number of path elements into a single path, adding a separating slash if necessary. The result is Cleaned; in particular, all empty strings are ignored.
Since Cleaned
is written in uppercase, this suggests that path.Clean
is called on the preliminary result of Join
. For most cases this is true, but for the case of only empty filenames, it isn't. There, path.Join("")
returns an empty string while path.Clean("")
returns dot.