We get a [Object Object] when joining path in AddFileButton, line 27.
The reason is that path is not a string joinable but actually an object containing the property name on which we want to join.
So the line ${currentFolder.path.join("/")}/${currentFolder.name}/${file.name} should be replaced by ${currentFolder.path.map(f => f.name).join("/")}/${currentFolder.name}/${file.name}.
Hope it helps someone.