GoogleChromeLabs / browser-fs-access

File System Access API with legacy fallback in the browser
https://googlechromelabs.github.io/browser-fs-access/demo/
Apache License 2.0
1.38k stars 84 forks source link

Is there a way to get just the path of the selected folder? #69

Closed delebash closed 2 years ago

delebash commented 2 years ago

I am trying to get a string path from the selected directory using showDirectoryPicker(), I do not want to upload anything I just need the selected path.

Does broswer-fs-access have this feature? Or do you know how to get selected path from const dirHandle = await window.showDirectoryPicker() I am able to get the dirHandle but I cannot find a method or property that gives me the selected directory path.

TY

tomayac commented 2 years ago

This is not possible on purpose, please see https://github.com/WICG/file-system-access/issues/282 for the details.