bzr-explorer-dev team mailing list archive
-
bzr-explorer-dev team
-
Mailing list archive
-
Message #00086
please, use bzrlib.urlutils.local_path_from_url
Dear plugins writers,
Please, don't convert URLs to file paths using this hack:
from_location = from_location[len("file://"):]
Please, always use dedicated API for this:
bzrlib.urlutils.local_path_from_url
Because the hack with len("file://") does not work on Windows, see:
URL: file:///C:/foo/bar
path after hack: /C:/foo/bar
should be: C:/foo/bar
Thank you.
Follow ups