The documentation should be unclear, since you can use file:make_dir/1 to create any directory that you usually allow to create. It does not create all the directories in the path, you must do this explicitly yourself.
Using filelib:ensure_dir/1 with the end ending with "/" is not documented, but it is explicitly processed in the code, so I doubt it will disappear.
source share