Question:
As per the title does the UploadFileByName method create intermediate directories?
specifically if I upload to dir1/dir2/foo.txt will the directories dir1 and dir2 be created or will the upload fail
OK I have answered my own question by trying it.
No it doesn't create the intermediate directories.