webkitdirectory

The webkitdirectory property of the HTMLInputElement interface reflects the webkitdirectory HTML attribute, which indicates that <input type='file'> elements can only select directories instead of files.

MDN Reference