Is there anything better than Tree structure, in the case of thousands of nested data?

What will be the best interaction, instead of a tree structure? Suppose you have thousands of files and folders in a tree? For example, Folder 1 has 100 files in it, folder 2 has 500 files in it. Folder A is inside the Folder 1, it has 200 files.

For the time being, we have kept it in a tree structure — but I am not sure if there is any other interaction instead this traditional format.