#/plugin-dialog when open a file now is returning a string

8 messages · Page 1 of 1 (latest)

dusty dawn
#

How do we get the file path and name now from using /plugin-dialog? There is a big breaking change between plugin dialog versions.

I used to have:

`const file = await open({
multiple: false,
directory: false,
})

const path = file.path
const name = file.name`

But now is imposible to do that

rich onyx
#

works on both window and linux path styles

dusty dawn
#

@rich onyx Thanks!!

#

I still think this changes should be controlled.. I mean now will take a couple of hours just to replace and fix all the things that depend on file.path

rich onyx
neat crypt
#

we won't have another breaking change like that at least until v3, sorry