-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
kind:bugA bug in the code. Does not apply to documentation, specs, etc.A bug in the code. Does not apply to documentation, specs, etc.topic:stdlib
Description
When using File.join
with empty strings, some unexpected results can be seen:
File.join("", "file.cr")
File.join(["dir", "", "file.cr"])
These should evaluate to "file.cr"
and "dir/file.cr"
respectively, but instead they evaluate to "/file.cr"
(whoops, absolute path out of nowhere) and "dir//file.cr"
.
Metadata
Metadata
Assignees
Labels
kind:bugA bug in the code. Does not apply to documentation, specs, etc.A bug in the code. Does not apply to documentation, specs, etc.topic:stdlib