search

Home  >  Q&A  >  body text

javascript - How to select a directory in electron

The requirement is
Click a button to select a folder and then get the path of the selected folder
How to implement it? After reading the document, I did not find an API that meets the requirement~ There is a shell.openItem. Have you tried it? Soft use~

给我你的怀抱给我你的怀抱2739 days ago763

reply all(1)I'll reply

  • 某草草

    某草草2017-06-30 09:57:34

    Found it…
    showOpenDialog ~~~~

    reply
    0
  • Cancelreply