@owaspjocur I'm not sure what you mean. Where did that code come from? I don't see it in the rust source tree.

Taking a string/byte vector that represents a path and calling `os::make_absolute(&Path::new(file))` is a perfectly legitimate way of getting an absolute path back.

As for your second line of code, that's absolutely incorrect. `.display()` is purely for displaying in some sort of UI. It should *never* be used to construct some other value in code that's used for anything other than showing to the user. If you want to construct a URL out of it, you'll need some way to add the correct percent-escapes for all invalid byte sequences in the path.