The list item-add command in the SPO stack uses a private method ensureFolder. The Folder command has a FolderExtensions class with an ensureFolder method. Just like in the command file-add, the item-add should use this method instead of its own method.
Good catch. Want to pick it up?
Yes, assign it to me @waldekmastykarz
Are you still working on this @rfjschouten?
Setting back as free for picking due to lack of response
@waldekmastykarz, please assign that to me. I planned to do it some months ago, that is why I created the FolderExtensions class as shared.
All yours @VelinGeorgiev!