The "upload file" function and command are able to handle directories as well as plain files, but the docs make no mention of directories – they should do so.