Skip to content

Uncaught error in index.js / utils.walkdir #7

Description

@kgdiem

If the user doesn't have permission on a file/dir, utils.walkdir results in an Uncaught TypeError because res is null.

if (stats && stats.isDirectory()) {
  utils.walkdir(filepath, base, function(err, res) {
    res.forEach(function(dirEntry) {
      results.push(dirEntry);
    });
    next();
  });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions