<div dir="ltr">Hi all,<div><br></div><div style>What is the reason behind filename:join/1's behavior? From the docs:</div><div style><br></div><div style>Joins a list of file name Components with directory separators. If one of the elements of Components includes an absolute path, for example "/xxx", the preceding elements, if any, are removed from the result.<br>
</div><div style><br></div><div style>That is,</div><div style><div>> filename:join(["/usr", "/local"]).</div><div>"/local"</div><div>> filename:join(["/usr", "local"]).</div>
<div>"/usr/local"</div><div><br></div><div><br></div><div style>Why? :)</div><div style><br></div><div style><br></div></div></div>