S
S
Sergey2020-06-03 19:52:37
Node.js
Sergey, 2020-06-03 19:52:37

How to call a dialog box in Electron with a path selection?

In an electron application, I want to make a button that brings up a directory selection dialog (not a file). In this directory, I will create the required json. Is there such a possibility?

Google gives links to choose the path to the file using the input type file, which is not convenient, because. there is no file.

The plan is this: the user presses a button, the js method is triggered, which calls up a dialog box, and when the user has selected a folder on his computer, a json file is created in this folder, and the path to it is written to another text file. Is that possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
coderisimo, 2020-06-03
@Bibort

Of course you can 1.
Of course you can 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question