title: How to detect when an empty directory is being uploaded in Chrome?
body: <p>I created an input element with type="file", with multiple, webkitdirectory, allowdirs and directory attributes present.</p>
  
  <p>I then added a "change" event handler, and it works when I select a directory of files to upload.</p>
  
  <p>However, if I accidentally select an empty directory, I don't get the change event. Is there any other event I can use to detect that an empty directory has been chosen?</p>
  
  <p>I'd like to be able to tell the user that the directory chosen is empty and to try to pick another one. Right now I have no way of detecting the user has done anything at all, and the user is given no indication of why their choice isn't doing anything.</p>
  
  <p>This has been reported as a bug:</p>
  
  <p><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=360412" rel="nofollow noreferrer">https://bugs.chromium.org/p/chromium/issues/detail?id=360412</a></p>
  
  <p>but I'd like to know if there's a workaround.</p>