diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -115,7 +115,7 @@ function parseInput (input, opts, cb) {
           file.getStream = getStreamStream(item, file)
           file.length = 0
         } else if (typeof item === 'string') {
-          if (typeof fs.readdir !== 'function') {
+          if (typeof fs.stat !== 'function') {
             throw new Error('filesystem paths do not work in the browser')
           }
           var keepRoot = numPaths > 1 || isSingleFileTorrent
fix unhelpful message in browser

In the browser, WebTorrent’s `client.seed()` function returns “Uncaught
TypeError: fs.stat is not a function” when passing in a file path,
because fs.readdir is defined by brfs (I think). Let’s check for
fs.stat instead.

For <URL>