In my rails app a user can have a directory structure which has folders and files in sub-folders. Which is the best way to store such data ?? Also, which database offers bes
It's simple tree stored in sql. Either check the standard parent-child scheme or implement preordered tree traversal scheme (left-right).
parent-child