I think i found a Bug?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 3boood_pro

Hi
I am making a program using Godot
i know its stupid put anyway

var dir = Directory.new()
dir.open("res://")
dir.make_dir("Data")

This Code Make a Directory
When the program opened
but the problem is
when i export it its not making the directory
what is the solution?!

:bust_in_silhouette: Reply From: njamster

Not a bug: “When exported […], the file system [res://…] will become read-only and writing will no longer be permitted.” (Source) Use the user-path instead:

var dir = Directory.new()
dir.open("user://")
dir.make_dir("Data")