本文介绍了从路径列表创建目录树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个充满路径的数组列表,想在树视图中显示它们(就像在Konqueror中一样)
但我不对其进行管理.
示例:
Dir1/
Dir1/SubDir1/SubDir2/
Dir1/SubDir1/AnotherSubDir1/
Dir1/SubDir3/SubDir4/Subdir5/
Dir1/AnotherSubdir2/SubDir5/
它们不是真实目录
请帮助!

非常感谢!!!



I have a arraylist full of paths and want to show them in a treeview( like in Konqueror )
but I do not manage it.
An example:
Dir1/
Dir1/SubDir1/SubDir2/
Dir1/SubDir1/AnotherSubDir1/
Dir1/SubDir3/SubDir4/Subdir5/
Dir1/AnotherSubdir2/SubDir5/
They are no real directories
Please help!

Thanky very much!!!

于2009年8月5日,星期三,9:33修改
modified on Wednesday, August 5, 2009 9:33 AM

推荐答案


这篇关于从路径列表创建目录树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 05:05