How to implement a virtual directory

The file structure is:

--folderA
    -- folderB
      -- file4.txt
    -- file1.txt
    -- file2.txt
    -- file3.exce

l

want to navigate the tree structure is:

--folderA
    -- folderB
      -- TXT
        -- file4.txt
    -- TXT
      -- file1.txt
      -- file2.txt
    -- EXCEL
      -- file3.excel

‘TXT, EXCEL’ is a virtual existence. In fact, for classification display.Preformatted text