prey/prey-node-client

View on GitHub
lib/agent/providers/files/tree.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function directoryTreeToObj has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var directoryTreeToObj = function(dir, current_depth, depth, done) {
  var resultsDir  = [],
      resultsFile = [];

  if (os_name == 'windows') dir = dir + '\\';
Severity: Major
Found in lib/agent/providers/files/tree.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status