TFolder manages a hierrachy of objects in memory. TDirectory is doing it for a file. One can save the TFolder structure to a directory in a file.