Currently some file paths (pathlib.Path objects) are converted to str using .as_posix(). This should rather be str(), to be OS-agnostic.
FileMetadata.get_file_url() should include a heuristics to discriminate base_urls that are URLs (.as_posix() is OK) compared to those that are local paths (use str() instead).
Or there should be a different argument for a base path than for a base URL.
Currently some file paths (
pathlib.Path
objects) are converted tostr
using.as_posix()
. This should rather bestr()
, to be OS-agnostic.FileMetadata.get_file_url()
should include a heuristics to discriminatebase_url
s that are URLs (.as_posix()
is OK) compared to those that are local paths (usestr()
instead).Or there should be a different argument for a base path than for a base URL.