So, hi !
I'm building the tree command over the FTP protocol, I've got almost everything working... I am using the library termtree to display my tree so I'm using the Tree<D> that the library has...
My issue is that, I want to be able to build the tree using DFS and BFS without changing anything. In any other language I would have been done a few hours ago using pointers and referencing them together but I'm starting to depress on this one...
Here's my current code : https://pastebin.com/rDjNQPaF
The only issue is that whatever I try to do, my output is :
~
├── exemples
├── iir
├── public_html
├── sr1
└── test
I know that it comes from the fact that I am not storing the sub trees in the main but... How can I make it so it will be stored ?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.