0 votes

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.

Godot version 3.4.4
in Engine by (30 points)

1 Answer

0 votes

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

by (372 points)

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 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.

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 like this tree (beacuse in godot there is tree node) or can I make a file dialog but its always open in the side.Thank you again

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.