How To Make A File Tree?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By I reject all deals

Hi,
I am trying to make a file tree but I dont know how to do it.
for example:

A Project Folder
------A file
------Another file
------A folder
------------another file
------------another file

I want to select a folder for project folde and ı want to list all file and folders in a node (maybe tree node for this job).
And when I pressed to file I want to open it.If there is a way, I want to rename also.

:bust_in_silhouette: Reply From: LeslieS

I think it would it be easiest to use the built in file dialog

Thank you for your answer but can I make a file tree with file dialog?
I am trying to make file tree like code editors do you know?

I reject all deals | 2022-12-21 15:40

I suppose its not really a tree.
It doesn’t show a tree but it shows a list of files and folders. You can click on a folder to go into that folder.
You can have a look at what it looks like here
At about 2:50 he shows how to use a filedialog.

LeslieS | 2022-12-22 01:49

thank you for your repyl again.yes I know this tutorial and maybe it can work for me.But do you think there is a way for doing this

or can I make a file dialog but its always open in the side.Thank you again

I reject all deals | 2022-12-22 06:23