gfileutils: Fix error propagation for other than ENOENT

Merged Carlos Garnacho requested to merge wip/carlosg/fix-mkdir-with-parents-errors into master

Commit 6f55306e unintendedly broke error handling for other error conditions than ENOENT along the path, like EPERM. It wanted to ignore ENOENT on all elements except the last in the path, but in doing that it ignored any other error that might happen on the last element.

#1852 (closed)

Merge request reports