this.app.workspace.getActiveFile() throwing 'Uncaught (in promise) Error: Folder already exists.'

this.app.workspace.getActiveFile() is throwing

Uncaught (in promise) Error: Folder already exists.
    at t.<anonymous> (app.js:1:733572)
    at app.js:1:237228
    at Object.next (app.js:1:237333)
    at a (app.js:1:236051)

This used to work fine but on updating to Obsidian v1.7.7 from v 1.5.(3/6 ?) this bug(?) appeared.

I have commited the code with 'instrumented console.log()'s to github :-

I don’t think it’s getActiveFile() that’s throwing. That function does not create files or folders. The code you linked too also includes createBinary. Have you tried printing out the path that is passed into createBinary? Does your vault have a folder there?

Looking at the console.log() trace that is where the plugin is throwing.