- all paths must be absolute
- last item in path is file
var input = ['/a/b/.git/config', '/a/x/d/x.js', '/a/x/d/x/ololo.xml'];
var output = {
"#": {
"a": {
"x": {
"d": {
"x": {
"ololo.xml": "ololo.xml"
},
"x.js": "x.js"
}
},
"b": {
".git": {
"config": "config"
}
}
}
}
}