What is the best way to store a direcory tree (with file/subdirs names) on sqlite database? (any java example code would be appreciated)
Asked
Active
Viewed 1,233 times
1 Answers
0
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.
-
Thanks. Regarding the later, are you aware of any java implementation code of the adjacency tree ? – user653952 Mar 30 '11 at 11:25
-
I'm not familiar with any particular package, but if you google "java adjacency list code" there are lots of promising-looking hits. – Ted Hopp Mar 30 '11 at 16:20