_excludePatterns () {
    if (!Array.isArray(this.excludeEnvFile)) {
      return [`**/${this.excludeEnvFile}`]
    }

    return this.excludeEnvFile.map(part => `**/${part}`)
  }
', '.git/**']

    this.cwd = path.resolve(directory)
    this.envFile = envFile
    this.excludeEnvFile = excludeEnvFile
  }

  run () {
    return this._filepaths()
  }

  _filepaths () {
    const exclude = picomatch(this._exclude())
    const include = picomatch(this._patterns(), {
      ignore: this._exclude()
    })

    return new Fdir()
      .withRelativePaths()
      .exclude((dir, path) => exclude(path))
      .filter((path) => include(path))
      .crawl(this.cwd)
      .sync()
  }

  _patterns () {
    if (!Array.isArray(this.envFile)) {
      return [`*