开发者

Store directory tree in sqlite with java

开发者 https://www.devze.com 2023-02-20 11:03 出处:网络
What is the best way to sto开发者_运维技巧re a direcory tree (with file/subdirs names) on sqlite database?

What is the best way to sto开发者_运维技巧re a direcory tree (with file/subdirs names) on sqlite database? (any java example code would be appreciated)


If you want to just store and retrieve the entire directory tree listing, you could save it as an XML file. If you want to make the tree structure visible to sqlite so you can select or change pieces of it (e.g., count the number of files), that's a bit more complicated. See my earlier post here, and especially the article that it links to.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号