Fixing it to append a trailing slash in end
Testing abspath instead of normpath
Appending trailing slash if not present
Making note in docs and changing example
Removing trailing whitespace
Change the error message to show actually what's tested
Merge pull request #14488 from nmadhok/test-file-makedirs-func

Test file makedirs func