Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/esm/dialog/file.js>openDirectory

A JavaScript extension package for building strong and modern applications.
Latest
function openDirectory
import { openDirectory } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/dialog/file.js";

Opens the directory picker dialog and selects all its files to open.

Examples

Example 1

import { openDirectory } from "@ayonli/jsext/dialog";

const files = await openDirectory();

for (const file of files) {
    console.log(`File name: ${file.name}, path: ${file.webkitRelativePath}`);
}

Parameters

optional
options = [UNSUPPORTED]