So I have some excellent code/videos that will loop through directories/files and place them in a similar style of Windows Explorer in a listview and treeview:
But what I want to do is store that structure in a database. I'm assuming the best database structure to store this as shown in this youtube video where each node's name is stored with a primary key to store where each parent's is:
Please note only sections from :30 to 1:18 section of video.
But is this how you would do it? Is there a sample code out there already that stores the files/subfolders and folders in a database so that a listview and treeview could be loaded from the data instead of directory.name?
This is exactly what I am trying to create... any tips are appreciated!