Hi!<br><br>file:path_open/3 currently doesn't handle eisdir or enotdir return values from file:open/2. Suppose we want to do path_open(["dir1", "dir2"], "sub/file") and dir2/sub/file is the actual path of the file that we are looking for. The effect of not handling these error cases is that the call will fail if dir1 happens to contain either a regular file called sub (file:open/2 returns enotdir) or a directory sub that in turn contains a directory file (file:open/2 return eisdir).<br>
<br>This patch handles these extra error cases in file:path_open/3<br><br>Repo:<br>git fetch git@github.com:tjarvstrand/otp.git additional-error-cases-in-path_open<br><div id=":ch">
<br>Comparison:<br><a href="https://github.com/tjarvstrand/otp/compare/additional-error-cases-in-path_open">https://github.com/tjarvstrand/otp/compare/additional-error-cases-in-path_open</a><br><a href="https://github.com/tjarvstrand/otp/compare/additional-error-cases-in-path_open.patch">https://github.com/tjarvstrand/otp/compare/additional-error-cases-in-path_open.patch</a><br>

<br>Regards<br>Thomas Järvstrand<br></div>