Data structure used for directory structure?

2019-03-10 05:34发布

I'm making a program which the user build directories (not in windows, in my app) and in these folders there are subfolders and so on; every folder must contain either folders or documents. What is the best data structure to use? Notice that the user may select a subfolder and search for documents in it and in its subfolders. And I don't want to limit the folders or the subfolders levels.

7条回答
干净又极端
2楼-- · 2019-03-10 06:32

I can think of a few ways you could structure this, but nothing would beat the obvious:

Use the actual file system.

查看更多
登录 后发表回答