Re: [directory-upload] Consider renaming getDirectoriesAndFiles to getFSItems (#32)

Note that the need to do feature detection makes the length more annoying, since you end up with code like:

```
function onInput(input) {
  if (input.getFilesAndDirectories) {
    input.getFilesAndDirectories().then(...);
  } else {
    input.files
  }
```
and
```
  if (item.getFilesAndDirectories) {
    ... item.getFilesAndDirectories() ...
  } else {
    ... not a Directory, do File stuff ...
  }
```

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/directory-upload/issues/32#issuecomment-200161682

Received on Wednesday, 23 March 2016 04:01:10 UTC