Skip to content

Directory.dir_exists() always fails on res:// type paths even though Directory.open() works #4705

@maeb

Description

@maeb

Operating system or device - Godot version:
Windows 10, Godot 2.1 alpha custom build

Issue description (what happened, and what was expected):

directory = Directory.new()
if not directory.dir_exists("res://path/to/dir"):
   print ("Directory does not exist")
if directory.open("res://path/to/dir) == OK:
  print("Directory open works")

Output:
Directory does not exist
Directory open works

Expected:
Directory open works

Steps to reproduce:

directory.dir_exists(directory.get_current_dir())

Link to minimal example project (optional but very welcome):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions