-
Notifications
You must be signed in to change notification settings - Fork 408
Closed
Labels
type::bugSomething isn't workingSomething isn't workingwhere::windowsWindows-specific issuesWindows-specific issues
Description
What's the actual way? Given this absolute path in Windows D:\a_\temp\popen-gw0\test_croot_with_spaces0\space path
:
>>> from libmambapy.specs import CondaURL
>>> CondaURL.parse("file:///D:/a/_temp/popen-gw0/test_croot_with_spaces0/space path")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
libmambapy.bindings.specs.ParseError: Failed to parse URL "file:///D:/a/_temp/popen-gw0/test_croot_with_spaces0/space path": Malformed input to a URL function
>>> CondaURL.parse("file:///D:/a/_temp/popen-gw0/test_croot_with_spaces0/space%20path
")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
libmambapy.bindings.specs.ParseError: Failed to parse URL "file:///D:/a/_temp/popen-gw0/test_croot_with_spaces0/space%20path": Bad file:// URL
>>> CondaURL.parse("file:///D/a/_temp/popen-gw0/test_croot_with_spaces0/space path")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
libmambapy.bindings.specs.ParseError: Failed to parse URL "file:///D/a/_temp/popen-gw0/test_croot_with_spaces0/space path": Malformed input to a URL function
>>> CondaURL.parse("file:///D/a/_temp/popen-gw0/test_croot_with_spaces0/space%20path"
)
file:///D/a/_temp/popen-gw0/test_croot_with_spaces0/space%20path
Only the last one (without the :
in the drive letter) is accepted, but not sure if that's understood as a Windows path internally? Should I always remove the :
in the drive?
Metadata
Metadata
Assignees
Labels
type::bugSomething isn't workingSomething isn't workingwhere::windowsWindows-specific issuesWindows-specific issues