I can't delete and rename the file.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By saulius
var dir = Directory.new()
var err=dir.remove("upk/cat.gd")
print(err)

err=2

is it attached to a node?

Eric Ellingson | 2019-07-23 00:23

What’s upk?

Dlean Jeans | 2019-07-23 00:32

2 means ERR_UNAVAILABLE .
On which platform are you running this code? Does this path actually exist?

Zylann | 2019-07-23 12:26