How to create hierarchical structure with list of path?

后端 未结 2 1393
长情又很酷
长情又很酷 2021-01-03 05:12

I\'m playing with the Dropbox\'s Delta API, when I call delta method I get a list of path\'s that changed since last call.

/photos 
/public 
/photos/sample a         


        
2条回答
  •  梦毁少年i
    2021-01-03 05:40

    @casperOne solution is fine but it works with the list in the question only if you use

    char[] charSeparators = new char[] {'/'};
    

    rather then

    char[] charSeparators = new char[] {'\\'};
    

提交回复
热议问题