code: function(root, dirs, fn) {
  
      if(dirs.length > 0) {
  
          var dir = NX.Path.normalize(root + '/' + dirs.join('/') + '/');
          var file = dir + 'extent.action.js';
  
          NX.Path.exists(file, function(exists) {
  
              if(!exists) {
                  dirs.pop();
                  checkExtentActionFile(root, dirs, fn);
              } else {
                  fn({
                      type: 'extent',
                      path: file
                  });
              }
  
          });
  
      } else {
          fn();
      }
  
  }
docs: }}} {{{ checkExtentActionFile