Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| module.exports = function(config) { | |
| config.set({ | |
| //root path location to resolve paths defined in files and exclude | |
| basePath: '', | |
| //files/patterns to exclude from loaded files | |
| exclude: [], | |
| //files/patterns to load in the browser | |
| files: [ | |
| {pattern: 'app/*.js', watched:true, served:false, included:false, nocache:false}, | |
| {pattern: 'spec/*.js',watched:true,served:true,included:true} | 
| ^(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[0-9]{2}|[0-9])(\.(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[0-9]{2}|[0-9])){3}$ | 
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!