Skip to content

File and Directory aren't declared - replaced by FileAccess and DirAccess in #65271 #66241

@unlessgames

Description

@unlessgames

Godot version

4.0 commit e5c5447

System information

Linux 64bit

Issue description

I'm getting this error with a custom build of Godot using the latest commit on master when trying to use File.new().

SCRIPT ERROR: Parse Error: Identifier "File" not declared in the current scope.

Tried building from the commit of the official beta as well and that runs fine.

Steps to reproduce

  • Build Godot (on Linux) from this commit e5c5447.

  • Create an empty scene with a script that uses File

Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions