-
-
Notifications
You must be signed in to change notification settings - Fork 321
Open
Description
Both forward and backslashes are valid path separators on Windows.
Right now, plenary doesn't seem to know what to do with Windows paths that contain forward slashes.
For example:
:lua print(require("plenary").Path:new("C:/path/to/file"):parent())
will output whatever the current directory is for some reason, regardless of input.
Mixed slashes also don't work correctly:
:lua print(require("plenary").Path:new("C:\\path/to/file"):parent()) outputs C:
While:
:lua print(require("plenary").Path:new("C:/path\\to/file"):parent()) outputs D:\C:/path (D:\ was my current directory)
OlofMoriya, kkmp-dk and melMass
Metadata
Metadata
Assignees
Labels
No labels